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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user