mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Delint recent change to evohome (#38294)
This commit is contained in:
parent
561e4b537a
commit
bea1570354
@ -614,9 +614,11 @@ class EvoChild(EvoDevice):
|
|||||||
@property
|
@property
|
||||||
def current_temperature(self) -> Optional[float]:
|
def current_temperature(self) -> Optional[float]:
|
||||||
"""Return the current temperature of a Zone."""
|
"""Return the current temperature of a Zone."""
|
||||||
if self._evo_broker.temps:
|
if (
|
||||||
if self._evo_broker.temps[self._evo_device.zoneId] != 128:
|
self._evo_broker.temps
|
||||||
return self._evo_broker.temps[self._evo_device.zoneId]
|
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"]:
|
if self._evo_device.temperatureStatus["isAvailable"]:
|
||||||
return self._evo_device.temperatureStatus["temperature"]
|
return self._evo_device.temperatureStatus["temperature"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user