2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

Shadow device should not copy all attribute from the main device

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

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});
}
}
}