Fix Evohome checking override duration (#31697)

This commit is contained in:
Eduard van Valkenburg 2020-02-10 14:43:39 -08:00 committed by GitHub
parent 94da129ef8
commit 454e63b69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: