add polling option

This commit is contained in:
Martín Villagra
2021-11-23 22:16:30 +00:00
parent 47c4edc20d
commit 515b3303e9
5 changed files with 29 additions and 4 deletions

View File

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