Improve LIDL christmas light detection in deCONZ (#105155)

pull/105199/head
Robert Svensson 2023-12-07 09:19:38 +01:00 committed by GitHub
parent f420dcbedc
commit 2a8a60b381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -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",