Improve LIDL christmas light detection in deCONZ (#105155)

This commit is contained in:
Robert Svensson
2023-12-07 09:19:38 +01:00
committed by Franck Nijhof
parent a2f9ffe50f
commit cfa85956e1
2 changed files with 3 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ DECONZ_TO_COLOR_MODE = {
LightColorMode.XY: ColorMode.XY,
}
TS0601_EFFECTS = [
XMAS_LIGHT_EFFECTS = [
"carnival",
"collide",
"fading",
@@ -200,8 +200,8 @@ class DeconzBaseLight(DeconzDevice[_LightDeviceT], LightEntity):
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:

View File

@@ -186,7 +186,6 @@ async def test_no_lights_or_groups(
"state": STATE_ON,
"attributes": {
ATTR_EFFECT_LIST: [
EFFECT_COLORLOOP,
"carnival",
"collide",
"fading",