forked from M-Labs/thermostat
Back out
This commit is contained in:
parent
c2dccb80f8
commit
b3f629fb4a
@ -69,11 +69,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
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?"
|
||||||
)
|
)
|
||||||
|
self.thermostat.end_session()
|
||||||
|
|
||||||
self.thermostat.connection_error.connect(handle_connection_error)
|
self.thermostat.connection_error.connect(handle_connection_error)
|
||||||
|
|
||||||
self.thermostat.connection_error.connect(self.thermostat.timed_out)
|
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)
|
self.thermostat.connection_state_changed.connect(self._on_connection_changed)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user