2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

59_LuftdatenInfo: fix recognition of newlines in definition

git-svn-id: https://svn.fhem.de/fhem/trunk@23228 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
igami 2020-11-25 06:28:42 +00:00
parent e2c5f32371
commit 38d85c3380

View File

@ -92,6 +92,8 @@ sub LuftdatenInfo_Define($$) {
delete($hash->{READINGS});
$DEF =~ s/\s+/ /g;
if($MODE eq "remote"){
return("Usage: define <name> $TYPE $MODE <SENSORID1> [<SENSORID2> ...]")
if($DEF !~ m/^[\s\d]+$/);