Improve LIDL christmas light detection in deCONZ (#105155)
parent
f420dcbedc
commit
2a8a60b381
|
@ -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:
|
||||
|
|
|
@ -186,7 +186,6 @@ async def test_no_lights_or_groups(
|
|||
"state": STATE_ON,
|
||||
"attributes": {
|
||||
ATTR_EFFECT_LIST: [
|
||||
EFFECT_COLORLOOP,
|
||||
"carnival",
|
||||
"collide",
|
||||
"fading",
|
||||
|
|
Loading…
Reference in New Issue