diff --git a/custom_components/tapo/light.py b/custom_components/tapo/light.py index 9a44031..9f34d60 100755 --- a/custom_components/tapo/light.py +++ b/custom_components/tapo/light.py @@ -52,7 +52,7 @@ def __init__(self, coordinator: TapoDataCoordinator, device: TapoBulb): self._attr_max_mireds = kelvin_to_mired(self._attr_min_color_temp_kelvin) self._attr_min_mireds = kelvin_to_mired(self._attr_max_color_temp_kelvin) self._attr_supported_features = ( - LightEntityFeature.EFFECT if self._effects else 0 + {LightEntityFeature.EFFECT} if self._effects else set() ) self._attr_supported_color_modes = _components_to_color_modes(device) self._attr_effect_list = list(self._effects.keys()) if self._effects else None