From 947e5a5276bc2512d382f9406095aa5f8e64dd8d Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 16 Dec 2021 09:03:42 +0100 Subject: [PATCH] [miio] fix action channel miot for empty input with parameters (#11794) Signed-off-by: Marcel Verpaalen Signed-off-by: Nick Waterton --- .../openhab/binding/miio/internal/handler/MiIoBasicHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java index e51083b71ea6b..f3bd724770b2b 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoBasicHandler.java @@ -245,7 +245,7 @@ public void handleCommand(ChannelUID channelUID, Command receivedCommand) { value = new JsonPrimitive(command.toString().toLowerCase()); } if (paramType == CommandParameterType.EMPTY) { - value = new JsonArray(); + value = parameters.deepCopy(); } final MiIoDeviceActionCondition miIoDeviceActionCondition = action.getCondition(); if (miIoDeviceActionCondition != null) {