From eb6f93fac1973ba983b82aa8da2fe9da0f7c3ec2 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 7 Mar 2021 09:20:31 +0000 Subject: [PATCH] fhem.pl: further attribute group tuning (Forum #119289) git-svn-id: https://svn.fhem.de/fhem/trunk@23904 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 0d69abf1c..735a9fef2 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -388,11 +388,11 @@ my @attrList = qw( timestamp-on-change-reading ); $readingFnAttributes = join(" ", @attrList); -my %framework_attrList = map { $_ => 1 } @attrList; -map { $framework_attrList{$_} = 1 } ( - "ignore", - "disable", - "disabledForIntervals" +my %framework_attrList = map { s/:.*//; $_ => 1 } @attrList; +map { $framework_attrList{$_} = 1 } qw( + ignore + disable + disabledForIntervals ); my %ra = ( @@ -2758,7 +2758,7 @@ getAllAttr($;$$) split(" ",$v) if($typeHash); }; - &$add($AttrList, "global"); + &$add($AttrList, "framework"); if($defs{$d}{".AttrList"}) { &$add($defs{$d}{".AttrList"}, "Module"); } else { @@ -2773,7 +2773,7 @@ getAllAttr($;$$) &$add($v, $type); }; $nl2space->($attr{global}{userattr}, "global userattr"); - $nl2space->($attr{$d}{userattr}, "Device userattr") if($attr{$d}); + $nl2space->($attr{$d}{userattr}, "device userattr") if($attr{$d}); return $list; }