This commit is contained in:
atse 2024-08-28 11:06:26 +08:00
parent c2dccb80f8
commit b3f629fb4a

View File

@ -69,11 +69,11 @@ class MainWindow(QtWidgets.QMainWindow):
self.info_box.display_info_box(
"Connection Error", "Thermostat connection lost. Is it unplugged?"
)
self.thermostat.end_session()
self.thermostat.connection_error.connect(handle_connection_error)
self.thermostat.connection_error.connect(self.thermostat.timed_out)
self.thermostat.connection_error.connect(self.thermostat.end_session)
self.thermostat.connection_state_changed.connect(self._on_connection_changed)