1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-20 10:59:24 +00:00

Deprecate calling async_listen and async_listen_once with run_immediately (#115169)

This commit is contained in:
J. Nick Koston
2024-04-08 10:07:54 -10:00
committed by GitHub
parent 5ef42078a3
commit ca5ed274cb
67 changed files with 126 additions and 243 deletions

View File

@@ -2513,9 +2513,7 @@ 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, run_immediately=True
)
hass.bus.async_listen("automation_triggered", async_automation_triggered)
hass.bus.async_fire("trigger_automation")
await asyncio.wait_for(script_done_event.wait(), 10)