We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2757354 commit 9ceaf32Copy full SHA for 9ceaf32
pyisy/events.py
@@ -403,7 +403,7 @@ def heartbeat_time(self):
403
async def _websocket_guardian(self):
404
"""Watch and reset websocket connection if no messages received."""
405
while self.status != ES_STOP_UPDATES:
406
- asyncio.sleep(self._hbwait)
+ await asyncio.sleep(self._hbwait)
407
if self.heartbeat_time > self._hbwait:
408
_LOGGER.debug("Websocket missed a heartbeat, resetting connection.")
409
self.status = ES_LOST_STREAM_CONNECTION
0 commit comments