From: Markus Michels Date: Sun, 5 Jun 2022 10:03:14 +0000 (+0200) Subject: Fix #12381 (#12843) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=29a45ef1ab8a565eef4da2235a518d1280b54349;p=openhab-addons.git Fix #12381 (#12843) Signed-off-by: markus7017 Signed-off-by: Markus Michels --- 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 d951285d05..af9834c1c0 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 @@ -223,6 +223,9 @@ public class ShellyCoapJSonDTO { } in.endArray(); + if (in.hasNext()) { + name = in.nextName(); + } } if (name.equalsIgnoreCase(COIOT_TAG_ACT)) { diff --git a/bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties b/bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties index 8022cef152..0978d4f378 100644 --- a/bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties +++ b/bundles/org.openhab.binding.shelly/src/main/resources/OH-INF/i18n/shelly.properties @@ -87,7 +87,6 @@ thing-type.shelly.shellytrv.description = Shelly TRV (Radiator value, battery po thing-type.shelly.shellyix3.description = Shelly ix3 (Activation Device with 3 inputs) # thing config - shellydevice -thing-type.config.shelly-relay.deviceIp.label = IP Address thing-type.config.shelly.deviceIp.label = IP Address thing-type.config.shelly.deviceIp.description = IP Address of the Shelly device thing-type.config.shelly.userId.label = User ID