diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 4baacff6d..b42f60ca6 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -442,6 +442,7 @@ sub getModel($$) { my ($hash, $address) = @_; my $response = GetFileFromURL("http://".$address."/YamahaRemoteControl/desc.xml"); + return undef unless(defined($response)); if($response =~ //) { $hash->{MODEL} = $1; @@ -453,6 +454,7 @@ sub getInputs($$) my ($hash, $address) = @_; my $response = SendCommand($address, "GetParam"); + return undef unless (defined($response)); $response =~ s/>\n