From 672df7355cb6b8598e0bba10391fe764b3f7a5e9 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Fri, 21 Feb 2025 19:30:48 +0100 Subject: [PATCH] Omit unknown hue effects (#138992) --- homeassistant/components/hue/v2/light.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/hue/v2/light.py b/homeassistant/components/hue/v2/light.py index fc3e000ab75..4b00299bc9d 100644 --- a/homeassistant/components/hue/v2/light.py +++ b/homeassistant/components/hue/v2/light.py @@ -107,7 +107,9 @@ class HueLight(HueBaseEntity, LightEntity): self._attr_effect_list = [] if effects := resource.effects: self._attr_effect_list = [ - x.value for x in effects.status_values if x != EffectStatus.NO_EFFECT + x.value + for x in effects.status_values + if x not in (EffectStatus.NO_EFFECT, EffectStatus.UNKNOWN) ] if timed_effects := resource.timed_effects: self._attr_effect_list += [