Guard for reloading with no zone config (#31547)

pull/31551/head
Paulus Schoutsen 2020-02-06 10:55:12 -08:00 committed by GitHub
parent 08a74ff686
commit 00c6f3cb85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ async def async_setup(hass: HomeAssistant, config: Dict) -> bool:
conf = await component.async_prepare_reload(skip_reset=True)
if conf is None:
return
await yaml_collection.async_load(conf[DOMAIN])
await yaml_collection.async_load(conf.get(DOMAIN, []))
service.async_register_admin_service(
hass,