projects
/
smartthings-infrastructure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cefc397
)
Adding integer input.
author
rtrimana
<rtrimana@uci.edu>
Mon, 5 Aug 2019 17:19:32 +0000
(10:19 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Mon, 5 Aug 2019 17:19:32 +0000
(10:19 -0700)
ColorTemperature/ColorTemperatures.groovy
patch
|
blob
|
history
diff --git
a/ColorTemperature/ColorTemperatures.groovy
b/ColorTemperature/ColorTemperatures.groovy
index 77f01753b04f03a1f4c4892d1905ffbd82ea7e1e..a1e19dc44035280258505854e06a71a47fddfd5a 100644
(file)
--- a/
ColorTemperature/ColorTemperatures.groovy
+++ b/
ColorTemperature/ColorTemperatures.groovy
@@
-99,6
+99,13
@@
public class ColorTemperatures {
colorTemperatues[0].setColorTemperature(colorTemperature)
}
}
+
+ def setColorTemperature(int colorTemperature) {
+ if (colorTemperature != this.colorTemperature) {
+ this.colorTemperature = colorTemperature
+ colorTemperatues[0].setColorTemperature(colorTemperature)
+ }
+ }
def on(String currentSwitch) {
if (currentSwitch != this.currentSwitch) {