From d48f49d02106518aa6866275e5bd5817fa6a229b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 17 Oct 2020 09:22:06 +0000 Subject: [PATCH] AttrTemplate.pm: allow space around {} in option: (Forum #112955) git-svn-id: https://svn.fhem.de/fhem/trunk@22981 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/AttrTemplate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/AttrTemplate.pm b/fhem/FHEM/AttrTemplate.pm index b9e237079..0958a2cec 100644 --- a/fhem/FHEM/AttrTemplate.pm +++ b/fhem/FHEM/AttrTemplate.pm @@ -349,7 +349,7 @@ AttrTemplate_Set($$@) $cmd .= $_; if($cmd =~ m/^option:(.*)$/s) { my $optVal = $1; - if($optVal =~ m/^{.*}$/) { + if($optVal =~ m/^\s*{.*}\s*$/) { $option = (AnalyzePerlCommand(undef, $optVal) eq "1"); } else {