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
|
@ -615,14 +615,11 @@ def _async_when_setup(
|
|||
EVENT_COMPONENT_LOADED,
|
||||
_matched_event,
|
||||
event_filter=_async_is_component_filter,
|
||||
run_immediately=True,
|
||||
)
|
||||
)
|
||||
if start_event:
|
||||
listeners.append(
|
||||
hass.bus.async_listen(
|
||||
EVENT_HOMEASSISTANT_START, _matched_event, run_immediately=True
|
||||
)
|
||||
hass.bus.async_listen(EVENT_HOMEASSISTANT_START, _matched_event)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue