mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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,7 +247,9 @@ sub LuftdatenInfo_ParseHttpResponse($) {
|
|||||||
readingsSingleUpdate($hash, "state", "error", 1);
|
readingsSingleUpdate($hash, "state", "error", 1);
|
||||||
}
|
}
|
||||||
elsif($data eq "[]"){
|
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"
|
&& InternalVal($SELF, "SENSORIDS", "implicit") eq "implicit"
|
||||||
){
|
){
|
||||||
delete($hash->{SENSORID2});
|
delete($hash->{SENSORID2});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user