mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
AttrTemplate.pm: show the content of recursive attrTemplates (Forum #112383)
git-svn-id: https://svn.fhem.de/fhem/trunk@22294 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
338d406b2b
commit
2b1f1822c0
@ -156,6 +156,14 @@ AttrTemplate_Help($)
|
||||
my $ret = "";
|
||||
$ret = $templates{$n}{desc} if($templates{$n}{desc});
|
||||
$ret .= "<br><pre>".join("\n",@{$templates{$n}{cmds}})."</pre>";
|
||||
|
||||
if(AttrVal("global", "showInternalValues", undef)) {
|
||||
my @atList = grep /set\s.*\sattrTemplate\s/,@{$templates{$n}{cmds}};
|
||||
foreach my $at (@atList) {
|
||||
next if($at !~ m/set\s.*\sattrTemplate\s(.*?) /);
|
||||
$ret .= "<br><b>attrTemplate $1:</b><br>".AttrTemplate_Help($1);
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user