Make run_immediately the default for core EventBus listeners (#113752)

* DNM: Make run_immediately the default for listeners

This is a test to see how much progress we have made twords this goal

https://github.com/home-assistant/core/pull/113727#issuecomment-2004587947

* fix shutdown

* Revert "fix shutdown"

This reverts commit a8969d7db9.

* set false since it break utility meter tests

* one more

* fix rfxtrx test

* test needs to be explict now

* fix matrix

* fail sooner
This commit is contained in:
J. Nick Koston 2024-04-05 16:14:20 -10:00 committed by GitHub
parent bf5cf382dc
commit fb98a6f026
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 25 additions and 10 deletions

View file

@ -2512,7 +2512,9 @@ async def test_recursive_automation_starting_script(
hass.services.async_register(
"test", "automation_started", async_service_handler
)
hass.bus.async_listen("automation_triggered", async_automation_triggered)
hass.bus.async_listen(
"automation_triggered", async_automation_triggered, run_immediately=False
)
hass.bus.async_fire("trigger_automation")
await asyncio.wait_for(script_done_event.wait(), 10)