From 44bea87f0385014e82b2bbeb4c343ca8d98b9e1f Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 8 Jul 2024 11:54:44 +0800 Subject: [PATCH] Thermostat.disconnect -> Thermostat.end_session QObject already has a disconnect method, avoid overriding it. --- pytec/pytec/gui/model/thermostat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 25246d5..4f2c195 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -104,7 +104,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):