add polling option

This commit is contained in:
Martín Villagra committed 2021-11-24 00:05:42 +00:00
1 parent 47c4edc20d
commit 515b3303e9
5 files changed
+29 -4

No files matched your search

@@ -382,7 +382,6 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
while True:
try:
await self.heartbeat()
await self.updatedps()
await asyncio.sleep(HEARTBEAT_INTERVAL)
except asyncio.CancelledError:
self.debug("Stopped heartbeat loop")