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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user