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

This commit is contained in:
Pascal Vizeli authored and Paulus Schoutsen committed 2019-07-19 09:44:43 -07:00
1 parent 8629b86186
commit 49e2583b08
1 file changed
+1 -1
@@ -66,7 +66,7 @@ class HMThermostat(HMDevice, ClimateDevice):
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
if "MANU_MODE" in self._hmdevice.ACTIONNODE:
if self._hm_controll_mode == self._hmdevice.MANU_MODE: