mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
@@ -614,12 +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 not self._evo_device.temperatureStatus["isAvailable"]:
|
|
||||||
return None
|
|
||||||
|
|
||||||
if self._evo_broker.temps:
|
if self._evo_broker.temps:
|
||||||
|
if self._evo_broker.temps[self._evo_device.zoneId] != 128:
|
||||||
return self._evo_broker.temps[self._evo_device.zoneId]
|
return self._evo_broker.temps[self._evo_device.zoneId]
|
||||||
|
|
||||||
|
if self._evo_device.temperatureStatus["isAvailable"]:
|
||||||
return self._evo_device.temperatureStatus["temperature"]
|
return self._evo_device.temperatureStatus["temperature"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user