From 571cbdf40c7232e108ac7cadb0e5a0d01601aebd Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Thu, 1 Sep 2016 09:31:52 +0200 Subject: [PATCH] If device was off target temp was null. Default to Heating setpoint (#3091) --- homeassistant/components/climate/zwave.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/climate/zwave.py b/homeassistant/components/climate/zwave.py index 63dddaf466b..b77a97e5d93 100755 --- a/homeassistant/components/climate/zwave.py +++ b/homeassistant/components/climate/zwave.py @@ -150,7 +150,8 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice): # Set point for value in self._node.get_values( class_id=COMMAND_CLASS_THERMOSTAT_SETPOINT).values(): - if self.current_operation is not None: + if self.current_operation is not None and \ + self.current_operation != 'Off': if SET_TEMP_TO_INDEX.get(self._current_operation) \ != value.index: continue