[miio] fix action channel miot for empty input with parameters (#11794)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
@@ -245,7 +245,7 @@ public class MiIoBasicHandler extends MiIoAbstractHandler {
|
|||||||
value = new JsonPrimitive(command.toString().toLowerCase());
|
value = new JsonPrimitive(command.toString().toLowerCase());
|
||||||
}
|
}
|
||||||
if (paramType == CommandParameterType.EMPTY) {
|
if (paramType == CommandParameterType.EMPTY) {
|
||||||
value = new JsonArray();
|
value = parameters.deepCopy();
|
||||||
}
|
}
|
||||||
final MiIoDeviceActionCondition miIoDeviceActionCondition = action.getCondition();
|
final MiIoDeviceActionCondition miIoDeviceActionCondition = action.getCondition();
|
||||||
if (miIoDeviceActionCondition != null) {
|
if (miIoDeviceActionCondition != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user