forked from M-Labs/thermostat
fixup forgetting to await
This commit is contained in:
parent
f9f8f6f2b6
commit
585c35b4c9
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user