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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user