From f1980715841a6641563b3a1ebcc91e52078cc0c3 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sun, 28 Aug 2022 22:24:36 -0700 Subject: [PATCH] Use variable --- tests/test_switch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_switch.py b/tests/test_switch.py index 5c785bce..e290c335 100644 --- a/tests/test_switch.py +++ b/tests/test_switch.py @@ -120,7 +120,9 @@ async def setup_switch(hass, extra_data): async def setup_lights(hass): """Set up 3 light entities using the 'test' platform.""" - await async_setup_component(hass, "light", {"light": {"platform": "demo"}}) + await async_setup_component( + hass, LIGHT_DOMAIN, {LIGHT_DOMAIN: {"platform": "demo"}} + ) await hass.async_block_till_done() platform = getattr(hass.components, "test.light")