mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
parent
11e1b8a19d
commit
05255b9c3f
@ -113,7 +113,10 @@ def async_from_config_dict(config: Dict[str, Any],
|
|||||||
yield from hass.async_add_job(loader.prepare, hass)
|
yield from hass.async_add_job(loader.prepare, hass)
|
||||||
|
|
||||||
# Make a copy because we are mutating it.
|
# Make a copy because we are mutating it.
|
||||||
config = OrderedDict(config)
|
new_config = OrderedDict()
|
||||||
|
for key, value in config.items():
|
||||||
|
new_config[key] = value or {}
|
||||||
|
config = new_config
|
||||||
|
|
||||||
# Merge packages
|
# Merge packages
|
||||||
conf_util.merge_packages_config(
|
conf_util.merge_packages_config(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user