mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
ps - add reload core config service (#2350)
This commit is contained in:
@@ -149,9 +149,9 @@ def load_yaml_config_file(config_path):
|
||||
conf_dict = load_yaml(config_path)
|
||||
|
||||
if not isinstance(conf_dict, dict):
|
||||
_LOGGER.error(
|
||||
'The configuration file %s does not contain a dictionary',
|
||||
msg = 'The configuration file {} does not contain a dictionary'.format(
|
||||
os.path.basename(config_path))
|
||||
raise HomeAssistantError()
|
||||
_LOGGER.error(msg)
|
||||
raise HomeAssistantError(msg)
|
||||
|
||||
return conf_dict
|
||||
|
||||
Reference in New Issue
Block a user