disconnect -> end_session

QObject already has a disconnect method
This commit is contained in:
atse 2024-07-08 11:54:44 +08:00
parent db71c6fd4f
commit 7e15ffd43c
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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):