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:
parent
e2c5f32371
commit
38d85c3380
@ -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]+$/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user