forked from M-Labs/thermostat
No need for async
This commit is contained in:
parent
d83c4ed4f6
commit
2c95bd9d09
@ -15,6 +15,7 @@ import asyncio
|
|||||||
import logging
|
import logging
|
||||||
import argparse
|
import argparse
|
||||||
from PyQt6 import QtWidgets, QtGui, uic
|
from PyQt6 import QtWidgets, QtGui, uic
|
||||||
|
from PyQt6.QtCore import pyqtSlot
|
||||||
import importlib.resources
|
import importlib.resources
|
||||||
|
|
||||||
|
|
||||||
@ -72,8 +73,8 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
await self.autotuners.stop_pid_from_running(ch)
|
await self.autotuners.stop_pid_from_running(ch)
|
||||||
self.thermostat.disconnect_cb = autotune_disconnect
|
self.thermostat.disconnect_cb = autotune_disconnect
|
||||||
|
|
||||||
@asyncSlot()
|
@pyqtSlot()
|
||||||
async def handle_connection_error():
|
def handle_connection_error():
|
||||||
self.info_box.display_info_box(
|
self.info_box.display_info_box(
|
||||||
"Connection Error", "Thermostat connection lost. Is it unplugged?"
|
"Connection Error", "Thermostat connection lost. Is it unplugged?"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user