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]>
  • Loading branch information
rogrun authored Oct 6, 2024
1 parent 2961291 commit 06a5b24
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 06a5b24

Please sign in to comment.