mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix invalid ColorMode on (some) 3rd party Hue Color lights (#97263)
This commit is contained in:
parent
2ae059d4fc
commit
94870f05ee
@ -123,7 +123,7 @@ class HueLight(HueBaseEntity, LightEntity):
|
||||
"""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
|
||||
|
Loading…
x
Reference in New Issue
Block a user