Skip to content

Commit

Permalink
Correction for Speed limits may not be correct #127
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidy committed Feb 13, 2022
1 parent cc9a35c commit c0b60a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pywizlight/bulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ def _set_cold_white(self, value: int) -> None:
self.pilot_params["c"] = value

def _set_speed(self, value: int) -> None:
"""Set the color changing speed in precent (0-100)."""
"""Set the color changing speed in precent (20-200)."""
# This applies only to changing effects.
if not 0 < value < 101:
raise ValueError("Value must be between 0 and 100")
if not 19 < value < 201:
raise ValueError("Value must be between 20 and 200")
self.pilot_params["speed"] = value

def _set_scene(self, scene_id: int) -> None:
Expand Down

0 comments on commit c0b60a2

Please sign in to comment.