Skip to content

Commit d4f303f

Browse files
authored
Merge pull request #225 from jwillemsen/jwi-logresponsetext
In case of an error log the full response text
2 parents 9806419 + 39a6e68 commit d4f303f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/daikin_onecta/daikin_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async def doBearerRequest(self, method, resourceUrl, options=None):
142142
self._last_patch_call = datetime.now()
143143
return True
144144

145-
raise Exception("Communication failed! Status: " + str(res.status_code))
145+
raise Exception("Communication failed! Status: " + str(res.status_code) + " " + res.txt)
146146

147147
async def getCloudDeviceDetails(self):
148148
"""Get pure Device Data from the Daikin cloud devices."""

0 commit comments

Comments
 (0)