From 3086d242312723163a876f1deebddffd46532435 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 12 Feb 2024 19:59:04 +0100 Subject: [PATCH] Add back `supported_color_modes` property to `blebox` light (#110350) --- homeassistant/components/blebox/light.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/blebox/light.py b/homeassistant/components/blebox/light.py index c4f13503abf..6446949cb89 100644 --- a/homeassistant/components/blebox/light.py +++ b/homeassistant/components/blebox/light.py @@ -62,7 +62,6 @@ class BleBoxLightEntity(BleBoxEntity[blebox_uniapi.light.Light], LightEntity): def __init__(self, feature: blebox_uniapi.light.Light) -> None: """Initialize a BleBox light.""" super().__init__(feature) - self._attr_supported_color_modes = {self.color_mode} if feature.effect_list: self._attr_supported_features = LightEntityFeature.EFFECT @@ -94,6 +93,11 @@ class BleBoxLightEntity(BleBoxEntity[blebox_uniapi.light.Light], LightEntity): return color_mode_tmp + @property + def supported_color_modes(self): + """Return supported color modes.""" + return {self.color_mode} + @property def effect_list(self) -> list[str]: """Return the list of supported effects."""