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):