From 1cecd31b3a6d76a12909586fba8fcdf8b7dcf402 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 1 Oct 2026 09:01:40 +0200 Subject: [PATCH] Fix flaky track template result group test (#183837) Co-authored-by: Claude Opus 5.5 --- tests/helpers/test_event.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/helpers/test_event.py b/tests/helpers/test_event.py index 021437770716..fbacd95ec34a 100644 --- a/tests/helpers/test_event.py +++ b/tests/helpers/test_event.py @@ -2020,6 +2020,8 @@ async def test_track_template_result_with_group(hass: HomeAssistant) -> None: """ template_complex = Template(template_complex_str, hass) + # Run in the event loop; executor jobs may append results out of order + @callback def specific_run_callback( event: Event[EventStateChangedData] | None, updates: list[TrackTemplateResult],