diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index b66136d..8fc123d 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -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): diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 95904d0..4c45c19 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -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):