Add run_immediately to the zone core config update async_listen (#113119)
Calling async_update_config will never suspend but cannot be changed to a callback function because it would break the collections apipull/113132/head
parent
51f871227e
commit
17209525cb
|
@ -281,7 +281,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
"""Handle core config updated."""
|
||||
await home_zone.async_update_config(_home_conf(hass))
|
||||
|
||||
hass.bus.async_listen(EVENT_CORE_CONFIG_UPDATE, core_config_updated)
|
||||
hass.bus.async_listen(
|
||||
EVENT_CORE_CONFIG_UPDATE, core_config_updated, run_immediately=True
|
||||
)
|
||||
|
||||
hass.data[DOMAIN] = storage_collection
|
||||
|
||||
|
|
Loading…
Reference in New Issue