Skip to content

Commit a7aaf16

Browse files
authored
feature: Property for outdoor temperature sensor
1 parent fef20e3 commit a7aaf16

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pymelcloud/ata_device.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ def room_temperature(self) -> Optional[float]:
207207
return None
208208
return self._state.get("RoomTemperature")
209209

210+
@property
211+
def has_outdoor_temperature(self) -> bool:
212+
"""Return True if the device has an outdoor temperature sensor."""
213+
if self._device_conf.get("HideOutdoorTemperature", False):
214+
return False
215+
return self._device_conf.get("Device", {}).get("HasOutdoorTemperature", False):
216+
210217
@property
211218
def outdoor_temperature(self) -> Optional[float]:
212219
"""Return outdoor temperature reported by the device."""

0 commit comments

Comments
 (0)