mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +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:
parent
3239c84065
commit
786104778c
@ -247,8 +247,10 @@ sub LuftdatenInfo_ParseHttpResponse($) {
|
||||
readingsSingleUpdate($hash, "state", "error", 1);
|
||||
}
|
||||
elsif($data eq "[]"){
|
||||
if( index($param->{url}, $hash->{SENSORID2}) > -1
|
||||
&& InternalVal($SELF, "SENSORIDS", "implicit") eq "implicit"
|
||||
if(
|
||||
InternalVal($SELF, "SENSORID2", undef)
|
||||
&& index($param->{url}, $hash->{SENSORID2}) > -1
|
||||
&& InternalVal($SELF, "SENSORIDS", "implicit") eq "implicit"
|
||||
){
|
||||
delete($hash->{SENSORID2});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user