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:
bd5fec6
)
Fixing a bug: there is no property level, so it should have called currentLevel instead.
author
rtrimana
<rtrimana@uci.edu>
Fri, 10 Apr 2020 17:37:05 +0000
(10:37 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Fri, 10 Apr 2020 17:37:05 +0000
(10:37 -0700)
SwitchLevel/SwitchLevels.groovy
patch
|
blob
|
history
diff --git
a/SwitchLevel/SwitchLevels.groovy
b/SwitchLevel/SwitchLevels.groovy
index aa931d95ba734d5039e0c41dc96ccdbd94824dbf..71c5a85446d00a89b7f8b4eb0f7459bedc9331ae 100644
(file)
--- a/
SwitchLevel/SwitchLevels.groovy
+++ b/
SwitchLevel/SwitchLevels.groovy
@@
-141,7
+141,7
@@
public class SwitchLevels {
sendEvent(eventDataMap)
}
} else if (eventDataMap["name"] == "level") {
- if (eventDataMap["value"].toInteger() != switchLevels[0].
l
evel) {
+ if (eventDataMap["value"].toInteger() != switchLevels[0].
currentL
evel) {
this.currentLevel = eventDataMap["value"].toInteger()
this.rate = eventDataMap["value"].toInteger()
switchLevels[0].setValue(eventDataMap["value"], "level")