From 281a4f2f4899c7c0c3520c19238756216ce0c036 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 28 Aug 2024 13:38:09 +0800 Subject: [PATCH] Remove connection errored --- pytec/pytec/gui/model/thermostat.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index d70872b..3471d79 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -33,7 +33,6 @@ class Thermostat(QObject, metaclass=PropertyMeta): self._report_mode_task = None self._poll_for_report = True self._update_params_task = None - self.connection_errored = False super().__init__(parent) async def start_session(self, host, port): @@ -55,7 +54,6 @@ class Thermostat(QObject, metaclass=PropertyMeta): exc_info=True, ) self.connection_error.emit() - self.connection_errored = True return self._update_params_task = asyncio.create_task(self.update_params()) await asyncio.sleep(self._update_s) @@ -117,7 +115,6 @@ class Thermostat(QObject, metaclass=PropertyMeta): self.stop_watching() await self._client.disconnect() self.connection_state_changed.emit(ThermostatConnectionState.DISCONNECTED) - self.connection_errored = False async def set_ipv4(self, ipv4): await self._client.set_param("ipv4", ipv4)