diff --git a/homeassistant/components/evohome/__init__.py b/homeassistant/components/evohome/__init__.py index f54bba1c58d..f429f5bd2f1 100644 --- a/homeassistant/components/evohome/__init__.py +++ b/homeassistant/components/evohome/__init__.py @@ -614,9 +614,11 @@ class EvoChild(EvoDevice): @property def current_temperature(self) -> Optional[float]: """Return the current temperature of a Zone.""" - if self._evo_broker.temps: - if self._evo_broker.temps[self._evo_device.zoneId] != 128: - return self._evo_broker.temps[self._evo_device.zoneId] + if ( + self._evo_broker.temps + and self._evo_broker.temps[self._evo_device.zoneId] != 128 + ): + return self._evo_broker.temps[self._evo_device.zoneId] if self._evo_device.temperatureStatus["isAvailable"]: return self._evo_device.temperatureStatus["temperature"]