Skip to content

Commit

Permalink
Fix invalid ColorMode on (some) 3rd party Hue Color lights (home-assi…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored Jul 26, 2023
1 parent 2ae059d commit 94870f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/hue/v2/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94870f0

Please sign in to comment.