No need for async

This commit is contained in:
atse 2024-08-29 12:11:49 +08:00
parent b9ba1e2d9f
commit f0772a8072

View File

@ -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
@ -68,8 +69,8 @@ class MainWindow(QtWidgets.QMainWindow):
self.autotuners.autotune_state_changed.connect(self.pid_autotune_handler) self.autotuners.autotune_state_changed.connect(self.pid_autotune_handler)
# Handlers for disconnections # Handlers for disconnections
@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?"
) )