Skip to content

Commit

Permalink
Wording 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 c0b60a2 commit ae0db0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pywizlight/bulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ 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 (20-200)."""
"""Set the color changing speed value (20-200)."""
# This applies only to changing effects.
if not 19 < value < 201:
raise ValueError("Value must be between 20 and 200")
Expand Down Expand Up @@ -206,7 +206,7 @@ def _set_hs_color(self, values: Tuple[float, float]) -> None:
rgb, cw = hs2rgbcw(values)
_rgb_in_range_or_raise(rgb)
# Set the RGB values
params = self.pilot_params
params = self.pilot_paramsP
params.update({key: rgb[idx] for idx, key in enumerate(RGB_ORDER)})
if cw is not None:
# Use the existing set_warm_white function to set the CW values
Expand Down

0 comments on commit ae0db0d

Please sign in to comment.