From 1e8164116934e938d82c6e21cb975063d18f00cf Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 29 Aug 2024 12:51:18 +0800 Subject: [PATCH] No need for async as well --- pytec/tec_qt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index cb3957d..d7af6b8 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -134,8 +134,8 @@ class MainWindow(QtWidgets.QMainWindow): except: pass - @asyncSlot(ThermostatConnectionState) - async def _on_connection_changed(self, state): + @pyqtSlot(ThermostatConnectionState) + def _on_connection_changed(self, state): self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED) self.thermostat_settings.setEnabled( state == ThermostatConnectionState.CONNECTED @@ -160,8 +160,8 @@ class MainWindow(QtWidgets.QMainWindow): self.status_lbl.setText("Disconnected") self.report_box.setChecked(False) - @asyncSlot(int, PIDAutotuneState) - async def pid_autotune_handler(self, _ch, _state): + @pyqtSlot(int, PIDAutotuneState) + def pid_autotune_handler(self, _ch, _state): ch_tuning = [] for ch in range(self.NUM_CHANNELS): if self.autotuners.get_state(ch) in {