Skip to content

Commit

Permalink
Merge pull request #233 from jwillemsen/jwi-errorlogging
Browse files Browse the repository at this point in the history
Add some more error logging
  • Loading branch information
jwillemsen authored Jun 27, 2024
2 parents b64c85e + 6873791 commit 736c664
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/daikin_onecta/daikin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ async def doBearerRequest(self, method, resourceUrl, options=None):
self._last_patch_call = datetime.now()
return True

_LOGGER.error("REQUEST TYPE %s FAILED: %s %s", method, res.status_code, res.text)

raise Exception("Communication failed! Status: " + str(res.status_code) + " " + res.text)

async def getCloudDeviceDetails(self):
Expand Down

0 comments on commit 736c664

Please sign in to comment.