From 1481819233d9243e0318108924b324e4a732dd89 Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 9 Sep 2024 15:44:07 +0800 Subject: [PATCH] super init's first --- pytec/pytec/gui/model/thermostat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index a87f401..a4f1604 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -28,13 +28,13 @@ class Thermostat(QObject, metaclass=PropertyMeta): NUM_CHANNELS = 2 def __init__(self, parent, update_s, disconnect_cb=None): + super().__init__(parent) + self._update_s = update_s self._client = AsyncioClient() self._watch_task = None self._update_params_task = None self.disconnect_cb = disconnect_cb - super().__init__(parent) - self.connection_state = ThermostatConnectionState.DISCONNECTED async def start_session(self, host, port):