diff --git a/pywizlight/bulb.py b/pywizlight/bulb.py index 4959a15..6ac22e5 100755 --- a/pywizlight/bulb.py +++ b/pywizlight/bulb.py @@ -110,9 +110,6 @@ def _set_rgb(self, values: tuple): self.pilot_params["b"] = blue else: raise ValueError("Blue is not in range between 0-255.") - # No CW because of full color - if cw is None: - cw = 0 # Use the existing set_warm_white function to set the CW values self._set_warm_white(cw) # Use the existing set_cold_white function to set the CW values diff --git a/pywizlight/rgbcw.py b/pywizlight/rgbcw.py index 85a1240..5e8998a 100644 --- a/pywizlight/rgbcw.py +++ b/pywizlight/rgbcw.py @@ -126,8 +126,6 @@ def trapezoid(hueVec, saturation): # scale back to the pilot color space rgb = vecInt(vecMul(rgb, 255)) cw = int(max(0, cw * CWMAX)) - if cw == 0: - cw = None debug(" RGB OUT: {}, CW: {}".format(rgb, cw)) # the wiz light appears to have 5 different LEDs, r, g, b, warm_white, and cold_white # there appears to be a max power supplied across the 5 LEDs, which explains why all-