From fecdb6c20fd78d45007a483e76920bfbb3a27ed2 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Wed, 6 Dec 2023 21:33:59 +0100 Subject: [PATCH 1/2] Improve LIDL christmas light detection in deCONZ --- homeassistant/components/deconz/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/deconz/light.py b/homeassistant/components/deconz/light.py index dc2ed04b4ed8b..044c9bf203b37 100644 --- a/homeassistant/components/deconz/light.py +++ b/homeassistant/components/deconz/light.py @@ -67,7 +67,7 @@ LightColorMode.XY: ColorMode.XY, } -TS0601_EFFECTS = [ +XMAS_LIGHT_EFFECTS = [ "carnival", "collide", "fading", @@ -200,8 +200,8 @@ def __init__(self, device: _LightDeviceT, gateway: DeconzGateway) -> None: if device.effect is not None: self._attr_supported_features |= LightEntityFeature.EFFECT self._attr_effect_list = [EFFECT_COLORLOOP] - if device.model_id == "TS0601": - self._attr_effect_list += TS0601_EFFECTS + if device.model_id in ("HG06467", "TS0601"): + self._attr_effect_list = XMAS_LIGHT_EFFECTS @property def color_mode(self) -> str | None: From eedf15726c69b1af98d2b9b723df2c4adca1239f Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Wed, 6 Dec 2023 21:43:36 +0100 Subject: [PATCH 2/2] Fix test --- tests/components/deconz/test_light.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/components/deconz/test_light.py b/tests/components/deconz/test_light.py index 357371e4853b8..d38c65526c2e2 100644 --- a/tests/components/deconz/test_light.py +++ b/tests/components/deconz/test_light.py @@ -186,7 +186,6 @@ async def test_no_lights_or_groups( "state": STATE_ON, "attributes": { ATTR_EFFECT_LIST: [ - EFFECT_COLORLOOP, "carnival", "collide", "fading",