Shadow device should not copy all attribute from the main device

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1582 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-05-24 10:26:17 +00:00
parent 956a293755
commit 0ecf815f66

View File

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