Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Erik Montnemery
6c87ccab40 Fix config.load_yaml_config_file 2023-12-04 17:16:13 +01:00

View file

@ -473,9 +473,12 @@ def load_yaml_config_file(
_LOGGER.error(msg)
raise HomeAssistantError(msg)
# Convert values to dictionaries if they are None
# Convert values to empty dictionaries if they are None
for key, value in conf_dict.items():
conf_dict[key] = value or {}
if value is not None:
continue
conf_dict[key] = {}
return conf_dict