From a5d510c2c678589c665f059ffeaf63b1d1161925 Mon Sep 17 00:00:00 2001 From: Fahrzin Hemmati Date: Fri, 9 Oct 2026 12:11:41 -0700 Subject: [PATCH] Fix incorrect use of dataclass vs instance in vesyncthermostat --- src/pyvesync/devices/vesyncthermostat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyvesync/devices/vesyncthermostat.py b/src/pyvesync/devices/vesyncthermostat.py index bd840f6c..ee13dfd0 100644 --- a/src/pyvesync/devices/vesyncthermostat.py +++ b/src/pyvesync/devices/vesyncthermostat.py @@ -42,9 +42,9 @@ def __init__( def _process_details(self, details: ResultThermostatDetails) -> None: """Internal method to process thermostat details.""" - if ResultThermostatDetails.supportMode is not None: + if details.supportMode is not None: self.supported_work_modes = [ - ThermostatWorkModes(mode) for mode in ResultThermostatDetails.supportMode + ThermostatWorkModes(mode) for mode in details.supportMode ] self.state.work_mode = ThermostatConst.WorkMode(details.workMode) self.state.work_status = ThermostatConst.WorkStatus(details.workStatus)