37_harmony.pm: restart discovery if additional device gets defined

git-svn-id: https://svn.fhem.de/fhem/trunk@18019 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2018-12-21 10:55:47 +00:00
parent 9151a036d1
commit ee3d7b0efd

View File

@@ -60,6 +60,10 @@ harmony_Initialize($)
sub
harmony_startDiscovery()
{
if( defined($modules{harmony}{defptr}{'harmony:discovery'}) ) {
fhem( "set harmony:discovery discover" );
}
return if( $modules{harmony}{defptr}{'harmony:discovery'} );
Log3 undef, 3, "harmony: starting discovery" ;
@@ -1093,7 +1097,7 @@ harmony_Parse($$$)
} elsif( $content =~ m/engine\?holdAction$/ ) {
$ignored = 1;
} elsif( $content =~ m/engine\?setsleeptimer$/ ) {
$ignored = 1;