From cfa6f750334c80470effe8beb4b21a32c3a7fc55 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 1 Oct 2026 08:50:32 +0200 Subject: [PATCH] Fix flaky script shared context test (#183838) Co-authored-by: Claude Opus 5.5 --- tests/components/script/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/script/test_init.py b/tests/components/script/test_init.py index cd3b0b01d8fa..ed0cb9c68e1c 100644 --- a/tests/components/script/test_init.py +++ b/tests/components/script/test_init.py @@ -658,7 +658,7 @@ async def test_shared_context(hass: HomeAssistant) -> None: started_flag.set() hass.bus.async_listen(event, event_started) - hass.bus.async_listen(EVENT_SCRIPT_STARTED, run_mock) + hass.bus.async_listen(EVENT_SCRIPT_STARTED, callback(run_mock)) assert await async_setup_component( hass,