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:
@@ -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});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user