diff --git a/README.md b/README.md index 6d03af6f..18a79c56 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,9 @@ https://github.com/ioBroker/AdapterRequests/issues/62 Placeholder for the next version (at the beginning of the line): ### **WORK IN PROGRESS** --> +### **WORK IN PROGRESS** +* (bluefox) Ignored status 400 by token request + ### 1.23.2 (2024-05-24) * (bluefox) Allowed calling token request without PIN * (bluefox) Corrected the token request diff --git a/api/hmCloudAPI.js b/api/hmCloudAPI.js index 97d33f95..d67869d1 100644 --- a/api/hmCloudAPI.js +++ b/api/hmCloudAPI.js @@ -124,7 +124,9 @@ class HmCloudAPI { }); return true; } catch (err) { - this.requestError && this.requestError(err); + if (err.response && err.response.status !== 400) { + this.requestError && this.requestError(err); + } return false; } }