From b3f629fb4a980582d07a2a3aff68f111d116ddce Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 28 Aug 2024 11:06:26 +0800 Subject: [PATCH] Back out --- pytec/tec_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index edd71e5..29ebae1 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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)