From 17209525cbccbe69c0b6a3285d99e2edc1457eca Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 11 Mar 2024 15:35:53 -1000 Subject: [PATCH] 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 --- homeassistant/components/zone/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zone/__init__.py b/homeassistant/components/zone/__init__.py index 4c4b9c7c229..2fda501c447 100644 --- a/homeassistant/components/zone/__init__.py +++ b/homeassistant/components/zone/__init__.py @@ -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