projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding missing methods.
[smartthings-infrastructure.git]
/
ColorControl
/
ColorControls.groovy
diff --git
a/ColorControl/ColorControls.groovy
b/ColorControl/ColorControls.groovy
index 90223c54bdd233baf3feb1690ed53477676ef9e9..5eb237bec7fcec7482bc42751373d05c1676885d 100644
(file)
--- a/
ColorControl/ColorControls.groovy
+++ b/
ColorControl/ColorControls.groovy
@@
-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) {