diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 61eb27f..3939038 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -54,14 +54,11 @@ 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) - @pyqtSlot() - def timed_out(self): - self.connection_errored = True - async def get_hw_rev(self): self.hw_rev = await self._client.hw_rev() return self.hw_rev diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 29ebae1..ff38ba9 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -73,8 +73,6 @@ class MainWindow(QtWidgets.QMainWindow): self.thermostat.connection_error.connect(handle_connection_error) - self.thermostat.connection_error.connect(self.thermostat.timed_out) - self.thermostat.connection_state_changed.connect(self._on_connection_changed) self.autotuners = PIDAutoTuner(self, self.thermostat, 2)