mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-06-17 05:40:11 +00:00
59_LuftdatenInfo: fix recognition of newlines in definition
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23228 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
22dfa0f306
commit
77fb322d6a
|
@ -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…
Reference in New Issue
Block a user