Adding missing methods.
[smartthings-infrastructure.git] / ColorControl / ColorControls.groovy
index 90223c54bdd233baf3feb1690ed53477676ef9e9..5eb237bec7fcec7482bc42751373d05c1676885d 100644 (file)
@@ -188,6 +188,14 @@ public class ColorControls {
                        colorControls[0].setHue(hue)
                }
        }
+       
+       def setHue(double hue) {
+               if (hue != this.hue) {
+                       this.hue = hue
+                       this.currentHue = hue
+                       colorControls[0].setHue(hue)
+               }
+       }
 
        def setSaturation(int saturation) {
                if (saturation != this.saturation) {