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}