From 6c78b4a63d1a233bbc22eb71fa21e24cc8c3c8d3 Mon Sep 17 00:00:00 2001 From: Markus Michels Date: Sat, 28 May 2022 11:55:58 +0200 Subject: [PATCH] Fixes CoAP parsing problem (#12831) (#12834) Signed-off-by: markus7017 Signed-off-by: Markus Michels --- .../binding/shelly/internal/coap/ShellyCoapJSonDTO.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/coap/ShellyCoapJSonDTO.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/coap/ShellyCoapJSonDTO.java index 99513deac..d951285d0 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/coap/ShellyCoapJSonDTO.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/coap/ShellyCoapJSonDTO.java @@ -224,8 +224,13 @@ public class ShellyCoapJSonDTO { in.endArray(); } - in.endObject(); + if (name.equalsIgnoreCase(COIOT_TAG_ACT)) { + // skip record + in.skipValue(); + } + + in.endObject(); return descr; }