From ca4bdb37335352b9c5c289248de11855ce434f7e Mon Sep 17 00:00:00 2001 From: Daniel Raper Date: Mon, 1 Jan 2024 14:08:50 +0000 Subject: [PATCH] Added GET debug --- custom_components/ohme/api_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/ohme/api_client.py b/custom_components/ohme/api_client.py index 53451b5..769eabd 100644 --- a/custom_components/ohme/api_client.py +++ b/custom_components/ohme/api_client.py @@ -144,6 +144,7 @@ async def _get_request(self, url): url, headers=self._get_headers() ) as resp: + _LOGGER.debug(f"API request to {url} status code {resp.status}, text: {await resp.text()}") await self._handle_api_error(url, resp) return await resp.json()