forked from M-Labs/thermostat
No need for async as well
This commit is contained in:
parent
2c95bd9d09
commit
1e81641169
@ -134,8 +134,8 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@asyncSlot(ThermostatConnectionState)
|
@pyqtSlot(ThermostatConnectionState)
|
||||||
async def _on_connection_changed(self, state):
|
def _on_connection_changed(self, state):
|
||||||
self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED)
|
self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED)
|
||||||
self.thermostat_settings.setEnabled(
|
self.thermostat_settings.setEnabled(
|
||||||
state == ThermostatConnectionState.CONNECTED
|
state == ThermostatConnectionState.CONNECTED
|
||||||
@ -160,8 +160,8 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
self.status_lbl.setText("Disconnected")
|
self.status_lbl.setText("Disconnected")
|
||||||
self.report_box.setChecked(False)
|
self.report_box.setChecked(False)
|
||||||
|
|
||||||
@asyncSlot(int, PIDAutotuneState)
|
@pyqtSlot(int, PIDAutotuneState)
|
||||||
async def pid_autotune_handler(self, _ch, _state):
|
def pid_autotune_handler(self, _ch, _state):
|
||||||
ch_tuning = []
|
ch_tuning = []
|
||||||
for ch in range(self.NUM_CHANNELS):
|
for ch in range(self.NUM_CHANNELS):
|
||||||
if self.autotuners.get_state(ch) in {
|
if self.autotuners.get_state(ch) in {
|
||||||
|
Loading…
Reference in New Issue
Block a user