diff --git a/pywizlight/bulb.py b/pywizlight/bulb.py index 0b89010..4959a15 100755 --- a/pywizlight/bulb.py +++ b/pywizlight/bulb.py @@ -110,11 +110,13 @@ def _set_rgb(self, values: tuple): self.pilot_params["b"] = blue else: raise ValueError("Blue is not in range between 0-255.") - if cw is not None: - # 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 - self._set_cold_white(cw) + # 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 + self._set_cold_white(cw) def _set_hs_color(self, values: tuple): """Set the HS color state of the bulb."""