Skip to content

Commit

Permalink
Added GET debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-r committed Jan 1, 2024
1 parent 4902436 commit ca4bdb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/ohme/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ca4bdb3

Please sign in to comment.