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) {