From 67bdeb994511e2ed4963a90639a269f1a6268eb8 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 5 Feb 2026 12:30:06 +0100 Subject: [PATCH] Adjust unknown color mode handling in ZHA lights (#162292) --- homeassistant/components/zha/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index a2fb61dc019..79927e66ed7 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -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