Skip to content

Commit

Permalink
[viessmann] fix IllegalStateException while parsing JSON (#593)
Browse files Browse the repository at this point in the history
Signed-off-by: Ronny Grun <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
  • Loading branch information
J-N-K committed Oct 6, 2024
1 parent 593d7f9 commit 8054c26
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public void checkExpiringToken() {
String response = executeGet(VIESSMANN_BASE_URL + "iot/v1/features/installations/" + installationId
+ "/gateways/" + gatewaySerial + "/devices/" + deviceId + "/features/");
if (response != null) {
response = response.replaceAll("\\n", "").replaceAll("\\r", "").replaceAll(" ", "");
response = response.replace("enum", "enumValue");
int i = response.indexOf("\"entries\":{\"type\":\"array\",\"value\"");
while (i > 0) {
Expand Down

0 comments on commit 8054c26

Please sign in to comment.