Removing/commenting out evt variable that was causing a state explosion.
[smartthings-infrastructure.git] / Methods / eventHandler.groovy
index 4df7675..4475bc2 100644 (file)
@@ -13,7 +13,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
        for (int i = 0;i < app2.eventList.size();i++) {
                if (app2.eventList[i] == name) {
                        def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
-                       evt.add(event)
+                       //evt.add(event)
                        app2.functionList[i](event)
                }
        }
@@ -21,7 +21,7 @@ def eventHandler(LinkedHashMap eventDataMap) {
        for (int i = 0;i < app1.eventList.size();i++) {
                if (app1.eventList[i] == name) {
                        def event = new Event(value, name, deviceId, descriptionText, displayed, linkText, linkText, isStateChange, unit, data)
-                       evt.add(event)
+                       //evt.add(event)
                        app1.functionList[i](event)
                }
        }