diff --git a/fhem/FHEM/10_MQTT2_DEVICE.pm b/fhem/FHEM/10_MQTT2_DEVICE.pm index 7107dffea..1c0f759da 100644 --- a/fhem/FHEM/10_MQTT2_DEVICE.pm +++ b/fhem/FHEM/10_MQTT2_DEVICE.pm @@ -321,7 +321,7 @@ MQTT2_getCmdHash($$) $k =~ s/:.*//; # potential arguments $h{$k} = $v; } - grep /./, + grep /[^ ]+/, split("\n", $list); return (\%h, join(" ",@cmd)); }