forked from M-Labs/thermostat
Order?
This commit is contained in:
parent
242b516acc
commit
9c0c6ab323
@ -201,11 +201,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
|
||||
case ThermostatConnectionState.CONNECTING:
|
||||
self._connecting_task.cancel()
|
||||
self._connecting_task = None
|
||||
await self._thermostat.end_session()
|
||||
self._thermostat.connection_state = (
|
||||
ThermostatConnectionState.DISCONNECTED
|
||||
)
|
||||
self._connecting_task = None
|
||||
|
||||
case ThermostatConnectionState.CONNECTED:
|
||||
await self._thermostat.end_session()
|
||||
|
Loading…
Reference in New Issue
Block a user