mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 11:26:55 +00:00
10_MQTT2_DEVICE.pm: allow empty readingsLit lines (Forum #116706)
git-svn-id: https://svn.fhem.de/fhem/trunk@23377 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8ef0280be2
commit
996f7cc31f
@ -603,8 +603,9 @@ MQTT2_DEVICE_addReading($$)
|
||||
my $cid = $defs{$name}{CID};
|
||||
my $dt = $defs{$name}{DEVICETOPIC};
|
||||
foreach my $line (split("\n", $param)) {
|
||||
next if($line eq "");
|
||||
my ($re,$code) = split(" ", $line,2);
|
||||
return "Bad line >$line< for $name" if(!defined($code));
|
||||
return "ERROR: empty code in line >$line< for $name" if(!defined($code));
|
||||
my $errMsg = CheckRegexp($re, "readingList attribute for $name");
|
||||
return $errMsg if($errMsg);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user