From: bdemsky Date: Wed, 7 Aug 2019 03:23:08 +0000 (-0700) Subject: edit X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=8b08a2cacdc6fe8024ee9ca6488a7e433cb83fde edit --- diff --git a/Methods/eventHandler.groovy b/Methods/eventHandler.groovy index e8ae2be..59bb059 100644 --- a/Methods/eventHandler.groovy +++ b/Methods/eventHandler.groovy @@ -12,7 +12,7 @@ def eventHandler(LinkedHashMap eventDataMap) { for (int i = 0;i < app2.eventList.size();i++) { if (app2.eventList[i] == name && - (app2.valueList[i] == "" || app2.valueList == value)) { + (app2.valueList[i] == "" || app2.valueList[i] == value)) { def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data) if (app2.functionList[i] instanceof String) { String toCall = app2.functionList[i] @@ -25,7 +25,7 @@ def eventHandler(LinkedHashMap eventDataMap) { for (int i = 0;i < app1.eventList.size();i++) { if (app1.eventList[i] == name && - (app1.valueList[i] == "" || app1.valueList == value)) { + (app1.valueList[i] == "" || app1.valueList[i] == value)) { def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data) if (app1.functionList[i] instanceof String) { String toCall = app1.functionList[i]