Not async

This commit is contained in:
atse 2024-09-09 12:52:54 +08:00
parent 5153ccdd77
commit 84e38a307d
1 changed files with 1 additions and 2 deletions

View File

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