2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

fhem.pl: add $name to stateFormat "official" Variables (Forum #42431)

git-svn-id: https://svn.fhem.de/fhem/trunk@11338 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-04-28 20:05:02 +00:00
parent 956cd8c485
commit 0b453c565a

View File

@ -2553,7 +2553,7 @@ CommandAttr($$)
delete($defs{$ioname}{".clientArray"}); # Force a recompute
}
if($attrName eq "stateFormat" && $init_done) {
my $err = perlSyntaxCheck($a[2], ());
my $err = perlSyntaxCheck($a[2], ("%name"=>""));
return $err if($err);
evalStateFormat($hash);
}