Skip to content

Commit

Permalink
Fix person reload service (#31716)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Feb 11, 2020
1 parent 6fcf547 commit 8a61581
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/person/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ async def async_reload_yaml(call: ServiceCall):
conf = await entity_component.async_prepare_reload(skip_reset=True)
if conf is None:
return
await yaml_collection.async_load(await filter_yaml_data(hass, conf[DOMAIN]))
await yaml_collection.async_load(
await filter_yaml_data(hass, conf.get(DOMAIN, []))
)

service.async_register_admin_service(
hass, DOMAIN, SERVICE_RELOAD, async_reload_yaml
Expand Down

0 comments on commit 8a61581

Please sign in to comment.