Skip to content

Commit

Permalink
fix: correct supported features type in TapoLightEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
shlendakh committed Jan 7, 2025
1 parent eb07968 commit faf8afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tapo/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit faf8afb

Please sign in to comment.