From 155c6f881d3d869d4cc00850ded2392d865afad6 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 31 Jul 2023 09:35:53 -0700 Subject: [PATCH] extra test --- tests/test_switch.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_switch.py b/tests/test_switch.py index 78f490cc..14eeae5a 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -1607,6 +1607,13 @@ async def test_proactive_multiple_lights_all_at_once(hass): assert all(hass.states.get(light).state == STATE_ON for light in lights) + # Turn on second time even though already on + events = await _turn_on_and_track_event_contexts( + hass, "test2", lights, return_full_events=True + ) + assert len(events) == 1, events + assert events[0].context.id == "test2" + async def test_proactive_multiple_lights_turn_on_non_managed_light(hass): """Create switch and demo lights."""