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:
|
case ThermostatConnectionState.CONNECTING:
|
||||||
self._connecting_task.cancel()
|
self._connecting_task.cancel()
|
||||||
|
self._connecting_task = None
|
||||||
await self._thermostat.end_session()
|
await self._thermostat.end_session()
|
||||||
self._thermostat.connection_state = (
|
self._thermostat.connection_state = (
|
||||||
ThermostatConnectionState.DISCONNECTED
|
ThermostatConnectionState.DISCONNECTED
|
||||||
)
|
)
|
||||||
self._connecting_task = None
|
|
||||||
|
|
||||||
case ThermostatConnectionState.CONNECTED:
|
case ThermostatConnectionState.CONNECTED:
|
||||||
await self._thermostat.end_session()
|
await self._thermostat.end_session()
|
||||||
|
Loading…
Reference in New Issue
Block a user