37_harmony.pm: ignore global autocreate settings for manual autocreate

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6881 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2014-11-04 11:48:38 +00:00
parent 4d6374041f
commit dc2cf121f4

View File

@@ -1231,10 +1231,10 @@ harmony_autocreate($;$)
$id = harmony_idOfDevice($hash, $id) if( $id && $id !~ m/^([\d-])+$/ );
return "unknown device $param" if( $param && !$id );
foreach my $d (keys %defs) {
next if($defs{$d}{TYPE} ne "autocreate");
return undef if(AttrVal($defs{$d}{NAME},"disable",undef));
}
#foreach my $d (keys %defs) {
# next if($defs{$d}{TYPE} ne "autocreate");
# return undef if(AttrVal($defs{$d}{NAME},"disable",undef));
#}
my $autocreated = 0;
foreach my $device (@{$hash->{config}->{device}}) {