mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +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-])+$/ );
|
$id = harmony_idOfDevice($hash, $id) if( $id && $id !~ m/^([\d-])+$/ );
|
||||||
return "unknown device $param" if( $param && !$id );
|
return "unknown device $param" if( $param && !$id );
|
||||||
|
|
||||||
foreach my $d (keys %defs) {
|
#foreach my $d (keys %defs) {
|
||||||
next if($defs{$d}{TYPE} ne "autocreate");
|
# next if($defs{$d}{TYPE} ne "autocreate");
|
||||||
return undef if(AttrVal($defs{$d}{NAME},"disable",undef));
|
# return undef if(AttrVal($defs{$d}{NAME},"disable",undef));
|
||||||
}
|
#}
|
||||||
|
|
||||||
my $autocreated = 0;
|
my $autocreated = 0;
|
||||||
foreach my $device (@{$hash->{config}->{device}}) {
|
foreach my $device (@{$hash->{config}->{device}}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user