Skip to content

Commit

Permalink
Log all websocket responses to debug (#127)
Browse files Browse the repository at this point in the history
* Log all websocker responses to debug

* Bump Version
  • Loading branch information
kingsleyadam authored Nov 18, 2024
1 parent c941cbf commit 9d1b3b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages = ["src/abbfreeathome"]

[project]
name = "local-abbfreeathome"
version = "1.16.1"
version = "1.16.2"
authors = [
{ name="Adam Kingsley", email="adam@kingsley.io" },
]
Expand Down
2 changes: 2 additions & 0 deletions src/abbfreeathome/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ async def ws_receive(
data = await self._ws_response.receive()
if data.type == WSMsgType.TEXT:
_ws_data = data.json().get(self._sysap_uuid)

_LOGGER.debug("Websocket Response: %s", _ws_data)
if callback and inspect.iscoroutinefunction(callback):
await callback(_ws_data)
elif callback:
Expand Down

0 comments on commit 9d1b3b0

Please sign in to comment.