forked from M-Labs/thermostat
disconnect -> end_session
QObject already has a disconnect method
This commit is contained in:
parent
db71c6fd4f
commit
7e15ffd43c
@ -94,7 +94,7 @@ class Thermostat(QObject, metaclass=PropertyMeta):
|
||||
self.report[i]["interval"] for i in range(len(self.report))
|
||||
]
|
||||
|
||||
async def disconnect(self):
|
||||
async def end_session(self):
|
||||
await self._client.end_session()
|
||||
|
||||
async def set_ipv4(self, ipv4):
|
||||
|
@ -273,7 +273,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
@asyncSlot()
|
||||
async def bail(self):
|
||||
await self._on_connection_changed(False)
|
||||
await self.thermostat.disconnect()
|
||||
await self.thermostat.end_session()
|
||||
|
||||
@asyncSlot(object, object)
|
||||
async def send_command(self, param, changes):
|
||||
|
Loading…
Reference in New Issue
Block a user