From c416fd8b2b4fff8d81146edc96e3c412377e13d3 Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 9 Sep 2024 12:52:54 +0800 Subject: [PATCH] Not async --- pytec/pytec/gui/model/thermostat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytec/pytec/gui/model/thermostat.py b/pytec/pytec/gui/model/thermostat.py index 9566a0b..ce6b69a 100644 --- a/pytec/pytec/gui/model/thermostat.py +++ b/pytec/pytec/gui/model/thermostat.py @@ -77,8 +77,7 @@ class Thermostat(QObject, metaclass=PropertyMeta): def start_watching(self): self._watch_task = asyncio.create_task(self.run()) - @asyncSlot() - async def stop_watching(self): + def stop_watching(self): if self._watch_task is not None: self._watch_task.cancel() self._watch_task = None