Skip to content

Commit

Permalink
fix(core): color modes brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
petretiandrea committed Apr 13, 2024
1 parent f873e62 commit e7e5918
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 @@ -209,7 +209,7 @@ def _components_to_color_modes(device: TapoBulb) -> set[ColorMode]:
color_modes.append(ColorMode.HS)
if device.is_brightness and not device.is_color_temperature and not device.is_color:
color_modes.append(ColorMode.BRIGHTNESS)
if not device.is_color_temperature and not device.is_color:
if not color_modes:
color_modes.append(ColorMode.ONOFF)
return set(color_modes)

Expand Down

0 comments on commit e7e5918

Please sign in to comment.