mirror of https://github.com/home-assistant/core
Delint recent change to evohome (#38294)
This commit is contained in:
parent
561e4b537a
commit
bea1570354
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue