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

37_harmony.pm: don't try fake origin query if hub is disabled

git-svn-id: https://svn.fhem.de/fhem/trunk@18120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-01-02 21:00:43 +00:00
parent aeb9572f32
commit 20c35b7a04

View File

@ -114,7 +114,9 @@ harmony_sendDiscovery()
} }
foreach my $chash ( values %{$modules{'harmony'}{defptr}} ) { foreach my $chash ( values %{$modules{'harmony'}{defptr}} ) {
next if( $chash->{NAME} eq 'harmony:discovery' ); my $cname = $chash->{NAME};;
next if( $cname eq 'harmony:discovery' );
next if( IsDisabled($cname) );
next if( $chash->{ConnectionState} eq 'Connected' ); next if( $chash->{ConnectionState} eq 'Connected' );
next if( !defined($chash->{ip}) ); next if( !defined($chash->{ip}) );
next if( $chash->{remoteId} ); next if( $chash->{remoteId} );