1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-08 17:49:37 +01:00

Adjust unknown color mode handling in ZHA lights (#162292)

This commit is contained in:
epenet
2026-02-05 12:30:06 +01:00
committed by GitHub
parent a227307387
commit 67bdeb9945
+2 -2
View File
@@ -157,10 +157,10 @@ class Light(LightEntity, ZHAEntity):
)
@property
def color_mode(self) -> ColorMode | None:
def color_mode(self) -> ColorMode:
"""Return the color mode."""
if self.entity_data.entity.color_mode is None:
return None
return ColorMode.UNKNOWN
return ZHA_TO_HA_COLOR_MODE[self.entity_data.entity.color_mode]
@property