Skip to content

Commit 9ceaf32

Browse files
committed
Missing await
1 parent 2757354 commit 9ceaf32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyisy/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def heartbeat_time(self):
403403
async def _websocket_guardian(self):
404404
"""Watch and reset websocket connection if no messages received."""
405405
while self.status != ES_STOP_UPDATES:
406-
asyncio.sleep(self._hbwait)
406+
await asyncio.sleep(self._hbwait)
407407
if self.heartbeat_time > self._hbwait:
408408
_LOGGER.debug("Websocket missed a heartbeat, resetting connection.")
409409
self.status = ES_LOST_STREAM_CONNECTION

0 commit comments

Comments
 (0)