From 4d805e2d30b21387832156de3f754dc90fd4463c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 20 Mar 2026 22:06:03 -1000 Subject: [PATCH] Update tests/integration/test_light_constant_brightness.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- tests/integration/test_light_constant_brightness.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_light_constant_brightness.py b/tests/integration/test_light_constant_brightness.py index 5169657021..622dc0e065 100644 --- a/tests/integration/test_light_constant_brightness.py +++ b/tests/integration/test_light_constant_brightness.py @@ -62,8 +62,8 @@ async def test_light_constant_brightness( ): entities, _ = await client.list_entities_services() lights = [e for e in entities if isinstance(e, LightInfo)] - cb_light = next(e for e in lights if "cb_light" in e.object_id) - ncb_light = next(e for e in lights if "ncb_light" in e.object_id) + cb_light = next(e for e in lights if e.object_id.endswith("cb_light")) + ncb_light = next(e for e in lights if e.object_id.endswith("ncb_light")) # Use InitialStateHelper to wait for initial state broadcast initial_state_helper = InitialStateHelper(entities)