No need for async as well

This commit is contained in:
atse 2024-08-29 12:51:18 +08:00
parent f8900d295d
commit 89986fd810

View File

@ -136,8 +136,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
@ -162,8 +162,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 {