From 26617659906fcd14699abe3e874a655bfd292e1a Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 28 Aug 2022 22:25:13 -0700 Subject: [PATCH] Remove test_expand_light_groups --- tests/test_switch.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/test_switch.py b/tests/test_switch.py index e290c335..6773c2d1 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -762,37 +762,6 @@ def test_attributes_have_changed(): ) -@pytest.mark.parametrize("wait", [True, False]) -async def test_expand_light_groups(hass, wait): - """Test expanding light groups.""" - await setup_lights_and_switch(hass, {}) - lights = ["light.ceiling_lights", "light.kitchen_lights"] - await async_setup_component( - hass, - LIGHT_DOMAIN, - { - LIGHT_DOMAIN: [ - {"platform": "demo"}, - { - "platform": GROUP_DOMAIN, - "entities": lights, - }, - ] - }, - ) - if wait: - await hass.async_block_till_done() - await hass.async_start() - await hass.async_block_till_done() - - expanded = set(_expand_light_groups(hass, ["light.light_group"])) - if wait: - assert expanded == set(lights) - else: - # Cannot expand yet because state is None - assert expanded == {"light.light_group"} - - async def test_unload_switch(hass): """Test removing Adaptive Lighting.""" entry, _ = await setup_switch(hass, {})