mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix person reload service (#31716)
This commit is contained in:
@@ -315,7 +315,9 @@ async def async_setup(hass: HomeAssistantType, config: ConfigType):
|
||||
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
|
||||
|
Reference in New Issue
Block a user