Don't allow hass.config.config_dir to be None (#98442)

This commit is contained in:
Erik Montnemery
2023-08-16 13:00:14 +02:00
committed by GitHub
parent 5ed3e90607
commit 91faa53843
18 changed files with 28 additions and 56 deletions

View File

@@ -94,8 +94,6 @@ async def async_check_ha_config_file( # noqa: C901
if not await hass.async_add_executor_job(os.path.isfile, config_path):
return result.add_error("File configuration.yaml not found.")
assert hass.config.config_dir is not None
config = await hass.async_add_executor_job(
load_yaml_config_file,
config_path,