]> git.basschouten.com Git - openhab-addons.git/commitdiff
[miio] fix action channel miot for empty input with parameters (#11794)
authorMarcel <marcel@verpaalen.com>
Thu, 16 Dec 2021 08:03:42 +0000 (09:03 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 08:03:42 +0000 (09:03 +0100)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java

index e51083b71ea6b68e9b2472a2e1e54b307ff67d58..f3bd724770b2b6095f3aa714c580435145b5fb04 100644 (file)
@@ -245,7 +245,7 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
                         value = new JsonPrimitive(command.toString().toLowerCase());
                     }
                     if (paramType == CommandParameterType.EMPTY) {
-                        value = new JsonArray();
+                        value = parameters.deepCopy();
                     }
                     final MiIoDeviceActionCondition miIoDeviceActionCondition = action.getCondition();
                     if (miIoDeviceActionCondition != null) {