mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +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."""
|
"""Return the color mode of the light."""
|
||||||
if color_temp := self.resource.color_temperature:
|
if color_temp := self.resource.color_temperature:
|
||||||
# Hue lights return `mired_valid` to indicate CT is active
|
# 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
|
return ColorMode.COLOR_TEMP
|
||||||
if self.resource.supports_color:
|
if self.resource.supports_color:
|
||||||
return ColorMode.XY
|
return ColorMode.XY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user