Migrate isy994 listeners to use run_immediately (#113661)
This commit is contained in:
parent
9a6804b5d7
commit
fcdb7039f9
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue