From 6641fdc73b6d4e891a7945eb2d6d3b517cf449fd Mon Sep 17 00:00:00 2001 From: justme1968 Date: Wed, 2 Jan 2019 21:00:43 +0000 Subject: [PATCH] 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 --- fhem/FHEM/37_harmony.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/37_harmony.pm b/fhem/FHEM/37_harmony.pm index 1baa5ba88..df4762dd7 100644 --- a/fhem/FHEM/37_harmony.pm +++ b/fhem/FHEM/37_harmony.pm @@ -114,7 +114,9 @@ harmony_sendDiscovery() } 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( !defined($chash->{ip}) ); next if( $chash->{remoteId} );