forked from M-Labs/thermostat
super init's first
This commit is contained in:
parent
75f05aa252
commit
1481819233
@ -28,13 +28,13 @@ class Thermostat(QObject, metaclass=PropertyMeta):
|
|||||||
NUM_CHANNELS = 2
|
NUM_CHANNELS = 2
|
||||||
|
|
||||||
def __init__(self, parent, update_s, disconnect_cb=None):
|
def __init__(self, parent, update_s, disconnect_cb=None):
|
||||||
|
super().__init__(parent)
|
||||||
|
|
||||||
self._update_s = update_s
|
self._update_s = update_s
|
||||||
self._client = AsyncioClient()
|
self._client = AsyncioClient()
|
||||||
self._watch_task = None
|
self._watch_task = None
|
||||||
self._update_params_task = None
|
self._update_params_task = None
|
||||||
self.disconnect_cb = disconnect_cb
|
self.disconnect_cb = disconnect_cb
|
||||||
super().__init__(parent)
|
|
||||||
|
|
||||||
self.connection_state = ThermostatConnectionState.DISCONNECTED
|
self.connection_state = ThermostatConnectionState.DISCONNECTED
|
||||||
|
|
||||||
async def start_session(self, host, port):
|
async def start_session(self, host, port):
|
||||||
|
Loading…
Reference in New Issue
Block a user