Add missing exception translations in immich (#162889)

This commit is contained in:
Michael
2026-02-12 22:32:22 +01:00
committed by GitHub
parent acf739df81
commit fdf02cf657
6 changed files with 49 additions and 12 deletions
+4 -4
View File
@@ -37,14 +37,14 @@ async def test_get_media_source(hass: HomeAssistant) -> None:
@pytest.mark.parametrize(
("identifier", "exception_msg"),
[
("unique_id", "Could not resolve identifier that has no mime-type"),
("unique_id", "identifier_no_mime_type_unresolvable"),
(
"unique_id|albums|album_id",
"Could not resolve identifier that has no mime-type",
"identifier_no_mime_type_unresolvable",
),
(
"unique_id|albums|album_id|asset_id|filename",
"Could not parse identifier",
"identifier_unresolvable",
),
],
)
@@ -102,7 +102,7 @@ async def test_browse_media_unconfigured(hass: HomeAssistant) -> None:
item = MediaSourceItem(
hass, DOMAIN, "unique_id/albums/album_id/asset_id/filename.png", None
)
with pytest.raises(BrowseError, match="Immich is not configured"):
with pytest.raises(BrowseError, match="not_configured"):
await source.async_browse_media(item)