mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Make sure temperature slider is shown if reported temp is 0 (#3653)
This commit is contained in:
parent
b6b0bad0c7
commit
e455daa61d
@ -164,6 +164,12 @@ class ZWaveClimate(ZWaveDeviceEntity, ClimateDevice):
|
|||||||
for value in (self._node.get_values(
|
for value in (self._node.get_values(
|
||||||
class_id=zwave.const.COMMAND_CLASS_THERMOSTAT_SETPOINT)
|
class_id=zwave.const.COMMAND_CLASS_THERMOSTAT_SETPOINT)
|
||||||
.values()):
|
.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 \
|
if self.current_operation is not None and \
|
||||||
self.current_operation != 'Off':
|
self.current_operation != 'Off':
|
||||||
if self._index_operation != value.index:
|
if self._index_operation != value.index:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user