2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

10_MQTT2_DEVICE.pm: fix regex issue with neighbor map (Forum #91394)

git-svn-id: https://svn.fhem.de/fhem/trunk@20465 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-11-06 18:23:13 +00:00
parent a880e8dc23
commit 75a366d8ac

View File

@ -621,9 +621,10 @@ MQTT2_DEVICE_nlData($)
# Needed for the image links
my $dv = ReadingsVal($d, ".devices", ReadingsVal($d, "devices", ""));
$dv =~ s@ieeeAddr":"([^"]+)"[^}]+model":"([^"]+)"@
my $ieeeAddr = $1;
my $img = $2;
$img =~ s+[/: ]+-+g; # Forum #91394: supported-devices.js
$img{$1} = "$img.jpg";
$img{$ieeeAddr} = "$img.jpg";
@xeg;
# Name translation