1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-28 11:16:40 +01:00

Add missing exception translation key in local_file (#172271)

This commit is contained in:
Max Michels
2026-05-26 20:06:38 +02:00
committed by GitHub
parent 9b67a24d92
commit 5ecbfea028
2 changed files with 3 additions and 1 deletions
@@ -15,7 +15,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up Local file from a config entry."""
file_path: str = entry.options[CONF_FILE_PATH]
if not await hass.async_add_executor_job(check_file_path_access, file_path):
# pylint: disable-next=home-assistant-exception-translation-key-missing
raise ConfigEntryError(
translation_domain=DOMAIN,
translation_key="not_readable_path",
@@ -22,6 +22,9 @@
"exceptions": {
"file_path_not_accessible": {
"message": "Path {file_path} is not accessible"
},
"not_readable_path": {
"message": "Path {file_path} is not readable"
}
},
"options": {