From ae5bef6ffacdb9ad0d19e163bba943779b405153 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 9 Feb 2024 14:11:27 +0100 Subject: [PATCH] Fix color mode in flux_led light (#110096) --- homeassistant/components/flux_led/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/flux_led/util.py b/homeassistant/components/flux_led/util.py index 7aa2d91de4e..8db12cb6e32 100644 --- a/homeassistant/components/flux_led/util.py +++ b/homeassistant/components/flux_led/util.py @@ -12,6 +12,8 @@ from .const import FLUX_COLOR_MODE_TO_HASS, MIN_RGB_BRIGHTNESS def _hass_color_modes(device: AIOWifiLedBulb) -> set[str]: color_modes = device.color_modes + if not color_modes: + return {ColorMode.ONOFF} return {_flux_color_mode_to_hass(mode, color_modes) for mode in color_modes}