From c71f4572922f16c964fb7e4a4b17256529ba7708 Mon Sep 17 00:00:00 2001 From: Fabiano Cattaneo Date: Sat, 19 Oct 2024 10:29:00 +0200 Subject: [PATCH] Detect as BNS if room has both BNS and NRVs A room may have both a BNS and one or more NRVs. This situation must be handled as a BNS, not as an NRV. --- src/pyatmo/room.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyatmo/room.py b/src/pyatmo/room.py index ff07ea72..899d7424 100644 --- a/src/pyatmo/room.py +++ b/src/pyatmo/room.py @@ -100,13 +100,13 @@ def evaluate_device_type(self) -> None: if "OTM" in self.device_types: self.climate_type = DeviceType.OTM - elif "NRV" in self.device_types: - self.climate_type = DeviceType.NRV elif "NATherm1" in self.device_types: self.climate_type = DeviceType.NATherm1 elif "BNS" in self.device_types: self.climate_type = DeviceType.BNS self.features.add("humidity") + elif "NRV" in self.device_types: + self.climate_type = DeviceType.NRV elif "BNTH" in self.device_types: self.climate_type = DeviceType.BNTH