Don't allow hass.config.config_dir to be None (#98442)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user