Update hvac-auto-off.smartapp.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Tue, 6 Aug 2019 16:24:29 +0000 (09:24 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Tue, 6 Aug 2019 16:24:29 +0000 (09:24 -0700)
third-party/hvac-auto-off.smartapp.groovy

index eecb6e8ab1b3d46911daa7a5ce952b27bd3079db..30280e9cc1b27899767b69ef56319f2fb38bf452 100755 (executable)
@@ -44,7 +44,8 @@ def updated() {
 
 def initialize() {
        state.changed = false
-       subscribe(sensors, 'contact', "sensorChange")
+       //subscribe(sensors, 'contact', "sensorChange")
+       subscribe(sensors, "contact", sensorChange)
 }
 
 def sensorChange(evt) {