This commit is contained in:
Johann Kellerman 2018-03-10 01:52:21 +02:00 committed by Paulus Schoutsen
parent 11e1b8a19d
commit 05255b9c3f

View file

@ -113,7 +113,10 @@ def async_from_config_dict(config: Dict[str, Any],
yield from hass.async_add_job(loader.prepare, hass)
# 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
conf_util.merge_packages_config(