Skip to content

Commit

Permalink
Changed if statement to return empty tuple
Browse files Browse the repository at this point in the history
Possible fix for issues other people have been having
  • Loading branch information
djhworld committed Jan 5, 2025
1 parent 40f7730 commit 37df674
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/tapo/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def __init__(self, coordinator: TapoDataCoordinator, device: TapoBulb):
self._attr_min_color_temp_kelvin = 2500
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 []
)
self._attr_supported_features = (LightEntityFeature.EFFECT) if self._effects else ()
self._attr_supported_color_modes = _components_to_color_modes(device)
self._attr_effect_list = list(self._effects.keys()) if self._effects else None
self._is_lightstrip = device.is_led_strip
Expand Down

0 comments on commit 37df674

Please sign in to comment.