[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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