From ccb8795449483a315cd917a959d1a3f3c40cabda Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 1 Oct 2026 08:51:25 +0200 Subject: [PATCH] Fix flaky homeassistant scene apply service test (#183840) Co-authored-by: Claude Opus 5.5 --- tests/components/homeassistant/test_scene.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/homeassistant/test_scene.py b/tests/components/homeassistant/test_scene.py index f13523088426..bb60f9c4b65c 100644 --- a/tests/components/homeassistant/test_scene.py +++ b/tests/components/homeassistant/test_scene.py @@ -81,6 +81,8 @@ async def test_reload_config_service_failed( async def test_apply_service(hass: HomeAssistant) -> None: """Test the apply service.""" assert await async_setup_component(hass, "scene", {}) + # demo needs the homeassistant component, set up by scene in the background + await hass.async_block_till_done() assert await async_setup_component(hass, "light", {"light": {"platform": "demo"}}) await hass.async_block_till_done()