Update double-tap.groovy
[smartapps.git] / official / double-tap.groovy
index 766b1d4..9cc290e 100755 (executable)
@@ -80,8 +80,8 @@ private offSwitches1() {
 }
 
 private lastTwoStatesWere(value, states, evt) {
-       def result = false
-       if (states) {
+       def result = true
+       /*if (states) {
 
                log.trace "unfiltered: [${states.collect{it.dateCreated + ':' + it.value}.join(', ')}]"
                def onOff = states.findAll { it.physical || !it.type }
@@ -95,6 +95,6 @@ private lastTwoStatesWere(value, states, evt) {
                else {
                        result = onOff.size() > 1 && onOff[0].value == value && onOff[1].value == value
                }
-       }
+       }*/
        result
 }