forked from M-Labs/thermostat
Not async
This commit is contained in:
parent
b3ba577268
commit
c416fd8b2b
@ -77,8 +77,7 @@ class Thermostat(QObject, metaclass=PropertyMeta):
|
|||||||
def start_watching(self):
|
def start_watching(self):
|
||||||
self._watch_task = asyncio.create_task(self.run())
|
self._watch_task = asyncio.create_task(self.run())
|
||||||
|
|
||||||
@asyncSlot()
|
def stop_watching(self):
|
||||||
async def stop_watching(self):
|
|
||||||
if self._watch_task is not None:
|
if self._watch_task is not None:
|
||||||
self._watch_task.cancel()
|
self._watch_task.cancel()
|
||||||
self._watch_task = None
|
self._watch_task = None
|
||||||
|
Loading…
Reference in New Issue
Block a user