From c05201523c67686345fdf4966cbc36a4b850e736 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 9 Feb 2026 14:45:54 +0000 Subject: [PATCH] Adjust openrgb default color mode handling --- homeassistant/components/openrgb/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/openrgb/light.py b/homeassistant/components/openrgb/light.py index 76d80cd8faf875..c599ab6c3eda25 100644 --- a/homeassistant/components/openrgb/light.py +++ b/homeassistant/components/openrgb/light.py @@ -158,7 +158,7 @@ def _update_attrs(self) -> None: else: mode_supports_colors = check_if_mode_supports_color(mode_data) - color_mode = None + color_mode = ColorMode.UNKNOWN rgb_color = None brightness = None on_by_color = True @@ -194,8 +194,8 @@ def _update_attrs(self) -> None: # If Off by color, retain previous color mode to avoid changing the UI color_mode = self._attr_color_mode - if color_mode is None: - # If color mode is still None, default to RGB + if color_mode == ColorMode.UNKNOWN: + # If color mode is still unknown, default to RGB color_mode = ColorMode.RGB if self._attr_brightness is not None and self._attr_brightness != brightness: