Shadow device should not copy all attribute from the main device

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1582 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-05-24 10:26:17 +00:00
parent ac79270214
commit 331ac4fe10

View File

@@ -163,8 +163,9 @@ CUL_HM_Define($$)
if($chiefHash) { if($chiefHash) {
my $cname = $chiefHash->{NAME}; my $cname = $chiefHash->{NAME};
if($attr{$cname}) { if($attr{$cname}) {
foreach my $attrName (keys %{$attr{$cname}}) { foreach my $attrName ("model", "subtype", "hmclass") {
$attr{$name}{$attrName} = $attr{$cname}{$attrName}; $attr{$name}{$attrName} = $attr{$cname}{$attrName}
if($attr{$cname}{$attrName});
} }
} }
} }