[climate] Correct evohome hvac_action (#25407)

* inital commit

* take account of rounding up of curr_temp
This commit is contained in:
David Bonnes authored and Paulus Schoutsen committed 2019-07-23 17:11:40 -07:00
1 parent 9fc4b878e2
commit e2e7d39527
1 file changed
+3 -3
+3 -3
View File
@@ -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]: