From c0b60a2f306aea237cc4002b616961284d83fef5 Mon Sep 17 00:00:00 2001 From: Stephan Traub Date: Sun, 13 Feb 2022 17:21:43 +0100 Subject: [PATCH] Correction for Speed limits may not be correct #127 --- pywizlight/bulb.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pywizlight/bulb.py b/pywizlight/bulb.py index d0ca198..e21f1d3 100755 --- a/pywizlight/bulb.py +++ b/pywizlight/bulb.py @@ -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: