Delint recent change to evohome (#38294)
This commit is contained in:
1 parent
561e4b537a
commit
bea1570354
1 file changed
+5
-3
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user