1
0
forked from M-Labs/thermostat

super init's first

This commit is contained in:
atse 2024-09-09 15:44:07 +08:00
parent a7ce942aea
commit 3b2743c079

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