From 7cf0684aa14e56e638c62dabc776db7eed846d50 Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Tue, 23 Jul 2019 06:14:42 +0100 Subject: [PATCH] [climate] Correct evohome hvac_action (#25407) * inital commit * take account of rounding up of curr_temp --- homeassistant/components/evohome/climate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/evohome/climate.py b/homeassistant/components/evohome/climate.py index 2070938f439..26021389ba4 100644 --- a/homeassistant/components/evohome/climate.py +++ b/homeassistant/components/evohome/climate.py @@ -193,9 +193,9 @@ class EvoZone(EvoClimateDevice): return CURRENT_HVAC_OFF if self.target_temperature <= self.min_temp: return CURRENT_HVAC_OFF - if self.target_temperature <= self.current_temperature: - return CURRENT_HVAC_HEAT - return CURRENT_HVAC_IDLE + if self.target_temperature < self.current_temperature: + return CURRENT_HVAC_IDLE + return CURRENT_HVAC_HEAT @property def current_temperature(self) -> Optional[float]: