mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
10_MQTT2_DEVICE.pm: readinglist-prefix exception for zigbee2mqtt (Forum #91394)
git-svn-id: https://svn.fhem.de/fhem/trunk@17888 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
51c9607fa2
commit
aefbf48d65
@ -161,7 +161,7 @@ MQTT2_DEVICE_Parse($$)
|
||||
my $ret = json2nameValue($value);
|
||||
if(keys %{$ret}) {
|
||||
$topic =~ m,.*/([^/]+),;
|
||||
my $prefix = $1 ? "${1}_" : "";
|
||||
my $prefix = ($1 && $1 !~m/^0x[0-9a-f]+$/) ? "${1}_" : ""; # 91394
|
||||
$add = "{ json2nameValue(\$EVENT, '$prefix') }";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user