Skip to content

Commit a4f28eb

Browse files
authored
Merge pull request #116 from jwillemsen/jwi-exceptionreturn
Return when we have an exception
2 parents 41bba28 + 84cec8e commit a4f28eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/daikin_residential_altherma/daikin_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ async def doBearerRequest(self, resourceUrl, options=None, refreshed=False):
8686
res = await self.hass.async_add_executor_job(func)
8787
except Exception as e:
8888
_LOGGER.error("REQUEST FAILED: %s", e)
89+
return str(e)
8990
_LOGGER.debug("BEARER RESPONSE CODE: %s", res.status_code)
9091

9192
if res.status_code == 200:

0 commit comments

Comments
 (0)