2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

LandroidUtils.pm: fix readingList for newly created dev (Forum #111959)

git-svn-id: https://svn.fhem.de/fhem/trunk@27470 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-04-21 08:48:41 +00:00
parent 694770c90c
commit 3b0d39b225

View File

@ -223,7 +223,8 @@ Landroid_connect3($)
push @cmds, $val if($readingName eq "mqtt_topics_command_in");
if($readingName eq "mqtt_topics_command_out") {
push @subs, $val;
$attr{$m2d_name}{readingList}="$val:.* {json2nameValue(\$EVENT)}"
CommandAttr(undef,
"$m2d_name readingList $val:.* {json2nameValue(\$EVENT)}")
if($m2c->{autocreate} && $m2d &&
!AttrVal($m2d_name, "readingList", undef));
}