From: Rahmadi Trimananda Date: Sat, 3 Aug 2019 19:04:11 +0000 (-0700) Subject: Update thermostat-auto-off.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8ca548479a6cd9d819cceaf9d2a0bf39b7ab965;p=smartapps.git Update thermostat-auto-off.groovy --- diff --git a/official/thermostat-auto-off.groovy b/official/thermostat-auto-off.groovy index fd06c6d..79696f4 100755 --- a/official/thermostat-auto-off.groovy +++ b/official/thermostat-auto-off.groovy @@ -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 +}