Update thermostat-auto-off.groovy
authorRahmadi Trimananda <rahmadi.trimananda@uci.edu>
Sat, 3 Aug 2019 19:04:11 +0000 (12:04 -0700)
committerGitHub Enterprise <noreply@github.uci.edu>
Sat, 3 Aug 2019 19:04:11 +0000 (12:04 -0700)
official/thermostat-auto-off.groovy

index fd06c6d703f114c5aeee3237085c97d98c07e82a..79696f4e2a1477148df807e4f4c9308685df5dc4 100755 (executable)
@@ -44,7 +44,7 @@ def updated() {
 
 def initialize() {
        state.changed = false
-       subscribe(sensors, 'contact', "sensorChange")
+       subscribe(sensors, "contact", sensorChange)
 }
 
 def sensorChange(evt) {
@@ -80,4 +80,4 @@ def restore() {
     log.debug "Setting thermostat to $state.thermostatMode"
     thermostat.setThermostatMode(state.thermostatMode)
     state.changed = false
-}
\ No newline at end of file
+}