diff --git a/custom_components/daikin_onecta/daikin_api.py b/custom_components/daikin_onecta/daikin_api.py index 641956f..dfc1f35 100644 --- a/custom_components/daikin_onecta/daikin_api.py +++ b/custom_components/daikin_onecta/daikin_api.py @@ -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):