From 454e63b69ee3d74d6d8d5324395794642e35c988 Mon Sep 17 00:00:00 2001 From: Eduard van Valkenburg Date: Mon, 10 Feb 2020 14:43:39 -0800 Subject: [PATCH] Fix Evohome checking override duration (#31697) --- homeassistant/components/evohome/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/evohome/climate.py b/homeassistant/components/evohome/climate.py index b7f6e965a8f..aece0f0ec0d 100644 --- a/homeassistant/components/evohome/climate.py +++ b/homeassistant/components/evohome/climate.py @@ -175,7 +175,7 @@ class EvoZone(EvoChild, EvoClimateDevice): if ATTR_DURATION_UNTIL in data: duration = data[ATTR_DURATION_UNTIL] - if duration == 0: + if duration.total_seconds() == 0: await self._update_schedule() until = parse_datetime(str(self.setpoints.get("next_sp_from"))) else: