Skip to content

Commit

Permalink
Fix room reachable property for MHS1-provided rooms
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Peijnik-Steinwender <speijnik@gmail.com>
  • Loading branch information
speijnik authored and jabesq committed Jun 18, 2024
1 parent 5ee6668 commit 6469940
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pyatmo/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ def update(self, raw_data: RawData) -> None:

self.heating_power_request = raw_data.get("heating_power_request")
self.humidity = raw_data.get("humidity")
self.reachable = raw_data.get("reachable")
if self.climate_type == DeviceType.BNTH:
# BNTH is wired, so the room is always reachable
self.reachable = True
else:
self.reachable = raw_data.get("reachable")
self.therm_measured_temperature = raw_data.get("therm_measured_temperature")
self.therm_setpoint_mode = raw_data.get("therm_setpoint_mode")
self.therm_setpoint_temperature = raw_data.get("therm_setpoint_temperature")
Expand Down

0 comments on commit 6469940

Please sign in to comment.