Migrate restore_state shutdown to use run_immediately (#113786)

pull/113796/head
J. Nick Koston 2024-03-18 21:42:49 -10:00 committed by GitHub
parent ae55e8e1ba
commit d740e4c3d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ class RestoreStateData:
# Dump states when stopping hass
self.hass.bus.async_listen_once(
EVENT_HOMEASSISTANT_STOP, _async_dump_states_at_stop
EVENT_HOMEASSISTANT_STOP, _async_dump_states_at_stop, run_immediately=True
)
@callback