From 9d1b3b01bf02467839d66cce150b86686fc66b31 Mon Sep 17 00:00:00 2001 From: Adam Kingsley Date: Mon, 18 Nov 2024 14:47:03 +0100 Subject: [PATCH] Log all websocket responses to debug (#127) * Log all websocker responses to debug * Bump Version --- pyproject.toml | 2 +- src/abbfreeathome/api.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c8bfe66..a9910ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }, ] diff --git a/src/abbfreeathome/api.py b/src/abbfreeathome/api.py index 1102f35..369cd5c 100644 --- a/src/abbfreeathome/api.py +++ b/src/abbfreeathome/api.py @@ -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: