diff --git a/homeassistant/components/local_file/__init__.py b/homeassistant/components/local_file/__init__.py index 1fc97349b28..183c8b7ee82 100644 --- a/homeassistant/components/local_file/__init__.py +++ b/homeassistant/components/local_file/__init__.py @@ -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", diff --git a/homeassistant/components/local_file/strings.json b/homeassistant/components/local_file/strings.json index d35b4e653c1..7c85b1780b4 100644 --- a/homeassistant/components/local_file/strings.json +++ b/homeassistant/components/local_file/strings.json @@ -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": {