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 api
pull/113132/head
J. Nick Koston 2024-03-11 15:35:53 -10:00 committed by GitHub
parent 51f871227e
commit 17209525cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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