1
0
forked from M-Labs/thermostat

fixup forgetting to await

This commit is contained in:
atse 2024-08-28 16:09:30 +08:00
parent f9f8f6f2b6
commit 585c35b4c9

View File

@ -65,11 +65,12 @@ class MainWindow(QtWidgets.QMainWindow):
)
self._connecting_task = None
def handle_connection_error():
@asyncSlot()
async def handle_connection_error():
self.info_box.display_info_box(
"Connection Error", "Thermostat connection lost. Is it unplugged?"
)
self.thermostat.end_session()
await self.thermostat.end_session()
self.thermostat.connection_error.connect(handle_connection_error)