From 54472c0eee9c0649d77086e058a9b5c6f7d081c2 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 22 Aug 2024 17:48:24 +0800 Subject: [PATCH] Resgister task --- pytec/pytec/gui/model/thermostat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 05b605f..8a887ac 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -25,6 +25,7 @@ class Thermostat(QObject, metaclass=PropertyMeta): self._report_mode_task = None self._poll_for_report = True self.connection_errored = False + self.task = None super().__init__(parent) async def start_session(self, host, port):