Skip to content

Commit

Permalink
Merge pull request #39 from firstof9/ws-debug
Browse files Browse the repository at this point in the history
feat: add debug message when ws closes without error
  • Loading branch information
catduckgnaf authored Feb 1, 2024
2 parents 4a6cd79 + 302cf98 commit 4b115ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/ryobi_gdo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ async def running(self):
await RyobiWebSocket.state.fset(self, STATE_STOPPED)
else:
if self._state != STATE_STOPPED:
LOGGER.debug(
"Websocket msgType: %s CloseCode: %s",
aiohttp.WSMsgType,
aiohttp.WSCloseCode,
)
await RyobiWebSocket.state.fset(self, STATE_DISCONNECTED)
await asyncio.sleep(5)

Expand Down

0 comments on commit 4b115ee

Please sign in to comment.