[miio] Fix emtpy command sending for feature channels (#16384)

closes #15994

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Marcel 2024-02-08 23:11:57 +01:00 committed by Ciprian Pascu
parent 3507b77ca9
commit 4d286438c8

View File

@ -642,7 +642,7 @@ public class MiIoVacuumHandler extends MiIoAbstractHandler {
}
}
for (RobotCababilities cmd : FEATURES_CHANNELS) {
if (isLinked(cmd.getChannel())) {
if (isLinked(cmd.getChannel()) && !cmd.getCommand().isBlank()) {
sendCommand(cmd.getCommand());
}
}