From e455daa61db5965b004aa2f5f9e4832751ed3b65 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Sun, 2 Oct 2016 17:47:04 +0200 Subject: [PATCH] Make sure temperature slider is shown if reported temp is 0 (#3653) --- homeassistant/components/climate/zwave.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/climate/zwave.py b/homeassistant/components/climate/zwave.py index 0fb13d258aa..d744f9a1391 100755 --- a/homeassistant/components/climate/zwave.py +++ b/homeassistant/components/climate/zwave.py @@ -164,6 +164,12 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice): for value in (self._node.get_values( class_id=zwave.const.COMMAND_CLASS_THERMOSTAT_SETPOINT) .values()): + if value.data == 0: + _LOGGER.debug("Setpoint is 0, setting default to " + "current_temperature=%s", + self._current_temperature) + self._target_temperature = int(self._current_temperature) + break if self.current_operation is not None and \ self.current_operation != 'Off': if self._index_operation != value.index: