[miio] fix action channel miot for empty input with parameters (#11794)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel
2021-12-16 09:03:42 +01:00
committed by GitHub
parent 82df34131c
commit 40b3db468b

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