Deprecate calling async_listen and async_listen_once with run_immediately (#115169)
This commit is contained in:
parent
5ef42078a3
commit
ca5ed274cb
67 changed files with 126 additions and 243 deletions
|
@ -125,7 +125,6 @@ class _StoreManager:
|
|||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STARTED,
|
||||
self._async_schedule_cleanup,
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
@ -185,7 +184,6 @@ class _StoreManager:
|
|||
self._hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
self._async_cancel_and_cleanup,
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
@ -481,7 +479,6 @@ class Store(Generic[_T]):
|
|||
self._unsub_final_write_listener = self.hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_FINAL_WRITE,
|
||||
self._async_callback_final_write,
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
@callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue