mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-10 01:55:38 +00:00
37_harmony.pm: ignore global autocreate settings for manual autocreate
git-svn-id: https://svn.fhem.de/fhem/trunk@6881 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8defa7a645
commit
e283125ff5
@ -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}}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user