From 94870f05eee47d35d914c6f607b608c41be8e6c8 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 26 Jul 2023 16:43:02 +0200 Subject: [PATCH] Fix invalid ColorMode on (some) 3rd party Hue Color lights (#97263) --- homeassistant/components/hue/v2/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hue/v2/light.py b/homeassistant/components/hue/v2/light.py index f2c1571fda2e5..957aa4a780648 100644 --- a/homeassistant/components/hue/v2/light.py +++ b/homeassistant/components/hue/v2/light.py @@ -123,7 +123,7 @@ def color_mode(self) -> ColorMode: """Return the color mode of the light.""" if color_temp := self.resource.color_temperature: # Hue lights return `mired_valid` to indicate CT is active - if color_temp.mirek_valid and color_temp.mirek is not None: + if color_temp.mirek is not None: return ColorMode.COLOR_TEMP if self.resource.supports_color: return ColorMode.XY