From 27d6ae288168bfd15ac2373c93c83a212fa2dcc9 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:00:44 +0100 Subject: [PATCH] Adjust openrgb default color mode handling (#162650) --- 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 76d80cd8faf..c599ab6c3ed 100644 --- a/homeassistant/components/openrgb/light.py +++ b/homeassistant/components/openrgb/light.py @@ -158,7 +158,7 @@ class OpenRGBLight(CoordinatorEntity[OpenRGBCoordinator], LightEntity): 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 @@ class OpenRGBLight(CoordinatorEntity[OpenRGBCoordinator], LightEntity): # 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: