projects
/
smartthings-infrastructure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2da169e
)
Fixing a bug in ColorControl.
author
rtrimana
<rtrimana@uci.edu>
Mon, 5 Aug 2019 19:39:56 +0000
(12:39 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Mon, 5 Aug 2019 19:39:56 +0000
(12:39 -0700)
ColorControl/ColorControls.groovy
patch
|
blob
|
history
diff --git
a/ColorControl/ColorControls.groovy
b/ColorControl/ColorControls.groovy
index 4919ebe463070dc97715f5b96e18678b6aab086f..a85298d2ebbd9b459c6eeb4c572ae6d42dd8bfa4 100644
(file)
--- a/
ColorControl/ColorControls.groovy
+++ b/
ColorControl/ColorControls.groovy
@@
-192,17
+192,17
@@
public class ColorControls {
}
}
}
}
- def on(
String currentSwitch
) {
- if (
currentSwitch != this.currentSwitch
) {
- this.currentSwitch =
currentSwitch
- colorControls[0].on(
currentSwitch)
+ def on() {
+ if (
this.currentSwitch != "on"
) {
+ this.currentSwitch =
"on"
+ colorControls[0].on(
)
}
}
}
}
- def off(
String currentSwitch
) {
- if (
currentSwitch != this.currentSwitch
) {
- this.currentSwitch =
currentSwitch
- colorControls[0].off(
currentSwitch)
+ def off() {
+ if (
this.currentSwitch != "off"
) {
+ this.currentSwitch =
"off"
+ colorControls[0].off(
)
}
}
}
}