From f0772a80720ce34677c36435b04d7650025df41a Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 29 Aug 2024 12:11:49 +0800 Subject: [PATCH] No need for async --- pytec/tec_qt.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index eb447d3..2f9a67b 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 @@ -68,8 +69,8 @@ class MainWindow(QtWidgets.QMainWindow): self.autotuners.autotune_state_changed.connect(self.pid_autotune_handler) # Handlers for disconnections - @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?" )