From 646994036378147bc9dfd231d682fbffeccfee7e Mon Sep 17 00:00:00 2001 From: Stephan Peijnik-Steinwender Date: Wed, 8 May 2024 00:12:30 +0200 Subject: [PATCH] Fix room reachable property for MHS1-provided rooms Signed-off-by: Stephan Peijnik-Steinwender --- src/pyatmo/room.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pyatmo/room.py b/src/pyatmo/room.py index d8065ec7..28578bb0 100644 --- a/src/pyatmo/room.py +++ b/src/pyatmo/room.py @@ -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")