mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Migrate restore_state shutdown to use run_immediately (#113786)
This commit is contained in:
parent
ae55e8e1ba
commit
d740e4c3d7
@ -253,7 +253,7 @@ class RestoreStateData:
|
|||||||
|
|
||||||
# Dump states when stopping hass
|
# Dump states when stopping hass
|
||||||
self.hass.bus.async_listen_once(
|
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
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user