2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

59_LuftdatenInfo: fixed error handling if no data returned

git-svn-id: https://svn.fhem.de/fhem/trunk@14572 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
igami 2017-06-25 19:32:30 +00:00
parent 3239c84065
commit 786104778c

View File

@ -247,7 +247,9 @@ sub LuftdatenInfo_ParseHttpResponse($) {
readingsSingleUpdate($hash, "state", "error", 1);
}
elsif($data eq "[]"){
if( index($param->{url}, $hash->{SENSORID2}) > -1
if(
InternalVal($SELF, "SENSORID2", undef)
&& index($param->{url}, $hash->{SENSORID2}) > -1
&& InternalVal($SELF, "SENSORIDS", "implicit") eq "implicit"
){
delete($hash->{SENSORID2});