From 75ad5f8c9e52c76c8292b87cb71f61bd6cb931a4 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 18 Jul 2019 11:24:07 +0200 Subject: [PATCH] Show off value (#25236) --- homeassistant/components/homematic/climate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homematic/climate.py b/homeassistant/components/homematic/climate.py index 86bdac4f4e5..09a1452a48d 100644 --- a/homeassistant/components/homematic/climate.py +++ b/homeassistant/components/homematic/climate.py @@ -66,6 +66,8 @@ class HMThermostat(HMDevice, ClimateDevice): Need to be one of HVAC_MODE_*. """ + if self.current_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: return HVAC_MODE_HEAT @@ -157,12 +159,12 @@ class HMThermostat(HMDevice, ClimateDevice): @property def min_temp(self): - """Return the minimum temperature - 4.5 means off.""" + """Return the minimum temperature.""" return 4.5 @property def max_temp(self): - """Return the maximum temperature - 30.5 means on.""" + """Return the maximum temperature.""" return 30.5 @property