mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix person reload service (#31716)
This commit is contained in:
parent
7edf0460cc
commit
30e302a8a3
@ -315,7 +315,9 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType):
|
|||||||
conf = await entity_component.async_prepare_reload(skip_reset=True)
|
conf = await entity_component.async_prepare_reload(skip_reset=True)
|
||||||
if conf is None:
|
if conf is None:
|
||||||
return
|
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(
|
service.async_register_admin_service(
|
||||||
hass, DOMAIN, SERVICE_RELOAD, async_reload_yaml
|
hass, DOMAIN, SERVICE_RELOAD, async_reload_yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user