2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

10_MQTT2_DEVICE.pm: fix typo

git-svn-id: https://svn.fhem.de/fhem/trunk@20071 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-08-27 09:43:28 +00:00
parent f741b4f810
commit 673bc2c0f2

View File

@ -391,7 +391,6 @@ MQTT2_DEVICE_Attr($$)
if($attrName =~ m/(.*)List/) {
my $atype = $1;
if($type eq "del") {
MQTT2_DEVICE_delReading($dev) if($atype eq "reading");
return undef;
@ -503,7 +502,7 @@ MQTT2_DEVICE_addReading($$)
MQTT2_DEVICE_delReading($name);
foreach my $line (split("\n", $param)) {
my ($re,$code) = split(" ", $line,2);
return "Bad line >$line< for $name" if(!defined($re) || !$defined($code);
return "Bad line >$line< for $name" if(!defined($re) || !defined($code));
eval { "Hallo" =~ m/^$re$/ };
return "Bad regexp: $@" if($@);
$modules{MQTT2_DEVICE}{defptr}{re}{$re}{"$name,$code"} = $code;