Fix HM with use wrong datapoint for off (#25298)

This commit is contained in:
Pascal Vizeli 2019-07-19 11:18:13 +02:00 committed by Paulus Schoutsen
parent 8629b86186
commit 49e2583b08

View File

@ -66,7 +66,7 @@ class HMThermostat(HMDevice, ClimateDevice):
Need to be one of HVAC_MODE_*. Need to be one of HVAC_MODE_*.
""" """
if self.current_temperature <= self._hmdevice.OFF_VALUE + 0.5: if self.target_temperature <= self._hmdevice.OFF_VALUE + 0.5:
return HVAC_MODE_OFF return HVAC_MODE_OFF
if "MANU_MODE" in self._hmdevice.ACTIONNODE: if "MANU_MODE" in self._hmdevice.ACTIONNODE:
if self._hm_controll_mode == self._hmdevice.MANU_MODE: if self._hm_controll_mode == self._hmdevice.MANU_MODE: