From 21e7ee84f0fa310ff2b05b43277efda041a05035 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 16 Jan 2025 09:46:14 +0000 Subject: [PATCH] 10_MQTT2_DEVICE.pm: ignore space-only lines in setList (Forum #140423) git-svn-id: https://svn.fhem.de/fhem/trunk@29528 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MQTT2_DEVICE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }