Skip to content

Commit

Permalink
Update cync_hub.py
Browse files Browse the repository at this point in the history
  • Loading branch information
network-guy authored May 25, 2024
1 parent e5cd5b5 commit 135b81b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/cync_lights/cync_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ async def turn_on(self, attr_rgb, attr_br, attr_ct) -> None:
self.hub.combo_control(True, self.brightness, 254, attr_rgb, controller, self.mesh_id, seq)
elif attr_ct is not None:
ct = round(100*(self.max_mireds - attr_ct)/(self.max_mireds - self.min_mireds))
self.hub.turn_on(controller, self.mesh_id, seq)
self.hub.set_color_temp(ct, controller, self.mesh_id, seq)
else:
self.hub.turn_on(controller, self.mesh_id, seq)
Expand Down

0 comments on commit 135b81b

Please sign in to comment.