mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Run storage final write listener immediately (#114976)
This one should not need a call_soon
This commit is contained in:
parent
c9ce848b4b
commit
d25ac06326
@ -479,7 +479,9 @@ class Store(Generic[_T]):
|
|||||||
"""Ensure that we write if we quit before delay has passed."""
|
"""Ensure that we write if we quit before delay has passed."""
|
||||||
if self._unsub_final_write_listener is None:
|
if self._unsub_final_write_listener is None:
|
||||||
self._unsub_final_write_listener = self.hass.bus.async_listen_once(
|
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
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user