Migrate isy994 listeners to use run_immediately (#113661)

This commit is contained in:
J. Nick Koston 2024-03-17 17:38:48 -10:00 committed by GitHub
parent 9a6804b5d7
commit fcdb7039f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,9 @@ async def async_setup_entry(
entry.async_on_unload(entry.add_update_listener(_async_update_listener)) entry.async_on_unload(entry.add_update_listener(_async_update_listener))
entry.async_on_unload( 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: # Register Integration-wide Services: