diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 2b27b00..cb3957d 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -15,6 +15,7 @@ import asyncio import logging import argparse from PyQt6 import QtWidgets, QtGui, uic +from PyQt6.QtCore import pyqtSlot import importlib.resources @@ -72,8 +73,8 @@ class MainWindow(QtWidgets.QMainWindow): await self.autotuners.stop_pid_from_running(ch) self.thermostat.disconnect_cb = autotune_disconnect - @asyncSlot() - async def handle_connection_error(): + @pyqtSlot() + def handle_connection_error(): self.info_box.display_info_box( "Connection Error", "Thermostat connection lost. Is it unplugged?" )