Skip to content

Commit

Permalink
Update light.py (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
brg468 authored Aug 6, 2023
1 parent f57c144 commit 5ccebaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/wyzeapi/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def supported_color_modes(self):

@property
def color_mode(self):
if self._bulb.type is DeviceTypes.LIGHT:
return ColorMode.COLOR_TEMP
return ColorMode.COLOR_TEMP if self._bulb.color_mode == "2" else ColorMode.HS

@property
Expand Down

0 comments on commit 5ccebaf

Please sign in to comment.