From fcdb7039f9b26ee09c43d94d5f59b0378f9e478c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 17 Mar 2024 17:38:48 -1000 Subject: [PATCH] Migrate isy994 listeners to use run_immediately (#113661) --- homeassistant/components/isy994/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/isy994/__init__.py b/homeassistant/components/isy994/__init__.py index 0c238182849..db72cc45a30 100644 --- a/homeassistant/components/isy994/__init__.py +++ b/homeassistant/components/isy994/__init__.py @@ -166,7 +166,9 @@ async def async_setup_entry( entry.async_on_unload(entry.add_update_listener(_async_update_listener)) entry.async_on_unload( - hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _async_stop_auto_update) + hass.bus.async_listen_once( + EVENT_HOMEASSISTANT_STOP, _async_stop_auto_update, run_immediately=True + ) ) # Register Integration-wide Services: