2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 23:09:26 +00:00

10_MQTT2_DEVICE.pm: fix autocreating readingList (Forum #90145)

git-svn-id: https://svn.fhem.de/fhem/trunk@17157 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-08-17 17:07:50 +00:00
parent ff243d4711
commit 998c0eefaa

View File

@ -137,7 +137,7 @@ MQTT2_DEVICE_Parse($$)
$add = "{ json2nameValue(\$EVENT) }" if(keys %{$ret});
}
if(!$add) {
$topic =~ m,[^/]*/(.*),;
$topic =~ m,.*/([^/]+),;
$add = ($1 ? $1 : $topic);
}
my $rl = AttrVal($nn, "readingList", "");