Run storage final write listener immediately (#114976)
This one should not need a call_soon
This commit is contained in:
parent
c9ce848b4b
commit
d25ac06326
1 changed files with 3 additions and 1 deletions
|
@ -479,7 +479,9 @@ class Store(Generic[_T]):
|
|||
"""Ensure that we write if we quit before delay has passed."""
|
||||
if self._unsub_final_write_listener is None:
|
||||
self._unsub_final_write_listener = self.hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_FINAL_WRITE, self._async_callback_final_write
|
||||
EVENT_HOMEASSISTANT_FINAL_WRITE,
|
||||
self._async_callback_final_write,
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue