From 06a5b24c7c59ed858959e79fd36cad883658e1fe Mon Sep 17 00:00:00 2001 From: Ronny Grun Date: Sun, 6 Oct 2024 18:06:15 +0200 Subject: [PATCH] [viessmann] fix IllegalStateException while parsing JSON (#593) Signed-off-by: Ronny Grun --- .../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) {