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
|
@ -550,15 +550,12 @@ class ESPHomeManager:
|
|||
# when the CLOSE event is fired so anything using a Bluetooth
|
||||
# proxy has a chance to shut down properly.
|
||||
entry_data.cleanup_callbacks.append(
|
||||
hass.bus.async_listen(
|
||||
EVENT_HOMEASSISTANT_CLOSE, self.on_stop, run_immediately=True
|
||||
)
|
||||
hass.bus.async_listen(EVENT_HOMEASSISTANT_CLOSE, self.on_stop)
|
||||
)
|
||||
entry_data.cleanup_callbacks.append(
|
||||
hass.bus.async_listen(
|
||||
EVENT_LOGGING_CHANGED,
|
||||
self._async_handle_logging_changed,
|
||||
run_immediately=True,
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue