Fix an error message when no sensor is configured
This commit is contained in:
parent
166443918f
commit
e85d56f105
|
@ -17,5 +17,5 @@ foreach (<SENSORS>){
|
|||
};
|
||||
}
|
||||
close SENSORS;
|
||||
print to_json($json);
|
||||
print to_json($json) if (defined $json->{data});
|
||||
exit(0);
|
||||
|
|
Loading…
Reference in New Issue