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: