Improve LIDL christmas light detection in deCONZ (#105155)
parent
f420dcbedc
commit
2a8a60b381
|
@ -67,7 +67,7 @@ DECONZ_TO_COLOR_MODE = {
|
||||||
LightColorMode.XY: ColorMode.XY,
|
LightColorMode.XY: ColorMode.XY,
|
||||||
}
|
}
|
||||||
|
|
||||||
TS0601_EFFECTS = [
|
XMAS_LIGHT_EFFECTS = [
|
||||||
"carnival",
|
"carnival",
|
||||||
"collide",
|
"collide",
|
||||||
"fading",
|
"fading",
|
||||||
|
@ -200,8 +200,8 @@ class DeconzBaseLight(DeconzDevice[_LightDeviceT], LightEntity):
|
||||||
if device.effect is not None:
|
if device.effect is not None:
|
||||||
self._attr_supported_features |= LightEntityFeature.EFFECT
|
self._attr_supported_features |= LightEntityFeature.EFFECT
|
||||||
self._attr_effect_list = [EFFECT_COLORLOOP]
|
self._attr_effect_list = [EFFECT_COLORLOOP]
|
||||||
if device.model_id == "TS0601":
|
if device.model_id in ("HG06467", "TS0601"):
|
||||||
self._attr_effect_list += TS0601_EFFECTS
|
self._attr_effect_list = XMAS_LIGHT_EFFECTS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def color_mode(self) -> str | None:
|
def color_mode(self) -> str | None:
|
||||||
|
|
|
@ -186,7 +186,6 @@ async def test_no_lights_or_groups(
|
||||||
"state": STATE_ON,
|
"state": STATE_ON,
|
||||||
"attributes": {
|
"attributes": {
|
||||||
ATTR_EFFECT_LIST: [
|
ATTR_EFFECT_LIST: [
|
||||||
EFFECT_COLORLOOP,
|
|
||||||
"carnival",
|
"carnival",
|
||||||
"collide",
|
"collide",
|
||||||
"fading",
|
"fading",
|
||||||
|
|
Loading…
Reference in New Issue