From 455ac1cadfa354f33cd4239aa035fdec6c95b9f1 Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Sun, 26 Jul 2020 21:13:10 +0100 Subject: [PATCH] fix issue #34559 (#38241) --- homeassistant/components/evohome/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/evohome/__init__.py b/homeassistant/components/evohome/__init__.py index 9af53981957..f54bba1c58d 100644 --- a/homeassistant/components/evohome/__init__.py +++ b/homeassistant/components/evohome/__init__.py @@ -614,13 +614,12 @@ class EvoChild(EvoDevice): @property def current_temperature(self) -> Optional[float]: """Return the current temperature of a Zone.""" - if not self._evo_device.temperatureStatus["isAvailable"]: - return None - if self._evo_broker.temps: - return self._evo_broker.temps[self._evo_device.zoneId] + if self._evo_broker.temps[self._evo_device.zoneId] != 128: + return self._evo_broker.temps[self._evo_device.zoneId] - return self._evo_device.temperatureStatus["temperature"] + if self._evo_device.temperatureStatus["isAvailable"]: + return self._evo_device.temperatureStatus["temperature"] @property def setpoints(self) -> Dict[str, Any]: