super init's first

This commit is contained in:
atse 2024-09-09 15:44:07 +08:00
parent 75f05aa252
commit 1481819233

View File

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