mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
fhem.pl: add device specific attributes (Forum #85868)
git-svn-id: https://svn.fhem.de/fhem/trunk@16442 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
81cbf73170
commit
cca6a70e77
13
fhem/fhem.pl
13
fhem/fhem.pl
@ -2548,12 +2548,13 @@ getAllAttr($;$)
|
||||
return "" if(!$defs{$d});
|
||||
|
||||
my $list = $AttrList; # Global values
|
||||
$list .= " " . $modules{$defs{$d}{TYPE}}{AttrList}
|
||||
if($modules{$defs{$d}{TYPE}}{AttrList});
|
||||
$list .= " " . $attr{global}{userattr}
|
||||
if($attr{global}{userattr});
|
||||
$list .= " " . $attr{$d}{userattr}
|
||||
if($attr{$d} && $attr{$d}{userattr});
|
||||
if($defs{$d}{".AttrList"}) {
|
||||
$list .= " " . $defs{$d}{".AttrList"};
|
||||
} elsif($modules{$defs{$d}{TYPE}}{AttrList}) {
|
||||
$list .= " " . $modules{$defs{$d}{TYPE}}{AttrList};
|
||||
}
|
||||
$list .= " " . $attr{global}{userattr} if($attr{global}{userattr});
|
||||
$list .= " " . $attr{$d}{userattr} if($attr{$d} && $attr{$d}{userattr});
|
||||
$list .= " userattr";
|
||||
return $list;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user