From b7f0bca3d19703d0dea3c8987e09400ef326a18e Mon Sep 17 00:00:00 2001 From: "Jan N. Klug" Date: Sun, 6 Oct 2024 18:12:48 +0200 Subject: [PATCH] [viessmann] fix IllegalStateException while parsing JSON (#593) Signed-off-by: Ronny Grun Signed-off-by: Jan N. Klug --- .../smarthomej/binding/viessmann/internal/api/ViessmannApi.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.smarthomej.binding.viessmann/src/main/java/org/smarthomej/binding/viessmann/internal/api/ViessmannApi.java b/bundles/org.smarthomej.binding.viessmann/src/main/java/org/smarthomej/binding/viessmann/internal/api/ViessmannApi.java index a18784bf70..fb7a9ae576 100644 --- a/bundles/org.smarthomej.binding.viessmann/src/main/java/org/smarthomej/binding/viessmann/internal/api/ViessmannApi.java +++ b/bundles/org.smarthomej.binding.viessmann/src/main/java/org/smarthomej/binding/viessmann/internal/api/ViessmannApi.java @@ -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) {