mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Deprecate calling async_listen and async_listen_once with run_immediately (#115169)
This commit is contained in:
@@ -276,7 +276,6 @@ def async_track_state_change(
|
||||
EVENT_STATE_CHANGED,
|
||||
state_change_dispatcher,
|
||||
event_filter=state_change_filter,
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
|
||||
@@ -419,7 +418,6 @@ def _async_track_event(
|
||||
tracker.event_type,
|
||||
ft.partial(tracker.dispatcher_callable, hass, callbacks),
|
||||
event_filter=ft.partial(tracker.filter_callable, hass, callbacks),
|
||||
run_immediately=True,
|
||||
)
|
||||
|
||||
job = HassJob(action, f"track {tracker.event_type} event {keys}", job_type=job_type)
|
||||
|
||||
Reference in New Issue
Block a user