From a8ca548479a6cd9d819cceaf9d2a0bf39b7ab965 Mon Sep 17 00:00:00 2001 From: Rahmadi Trimananda Date: Sat, 3 Aug 2019 12:04:11 -0700 Subject: [PATCH] Update thermostat-auto-off.groovy --- official/thermostat-auto-off.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} -- 2.34.1