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:
@@ -621,9 +621,10 @@ MQTT2_DEVICE_nlData($)
|
|||||||
# Needed for the image links
|
# Needed for the image links
|
||||||
my $dv = ReadingsVal($d, ".devices", ReadingsVal($d, "devices", ""));
|
my $dv = ReadingsVal($d, ".devices", ReadingsVal($d, "devices", ""));
|
||||||
$dv =~ s@ieeeAddr":"([^"]+)"[^}]+model":"([^"]+)"@
|
$dv =~ s@ieeeAddr":"([^"]+)"[^}]+model":"([^"]+)"@
|
||||||
|
my $ieeeAddr = $1;
|
||||||
my $img = $2;
|
my $img = $2;
|
||||||
$img =~ s+[/: ]+-+g; # Forum #91394: supported-devices.js
|
$img =~ s+[/: ]+-+g; # Forum #91394: supported-devices.js
|
||||||
$img{$1} = "$img.jpg";
|
$img{$ieeeAddr} = "$img.jpg";
|
||||||
@xeg;
|
@xeg;
|
||||||
|
|
||||||
# Name translation
|
# Name translation
|
||||||
|
|||||||
Reference in New Issue
Block a user