mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Reduce overhead to run event triggers (#103172)
This commit is contained in:
parent
45f5c21402
commit
f15fb6cf5e
@ -142,7 +142,9 @@ async def async_attach_trigger(
|
||||
)
|
||||
|
||||
removes = [
|
||||
hass.bus.async_listen(event_type, handle_event, event_filter=filter_event)
|
||||
hass.bus.async_listen(
|
||||
event_type, handle_event, event_filter=filter_event, run_immediately=True
|
||||
)
|
||||
for event_type in event_types
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user