2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: change attr -r (Forum #98692)

git-svn-id: https://svn.fhem.de/fhem/trunk@18950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-03-17 22:23:02 +00:00
parent 5c70f26052
commit 0faa399001

View File

@ -2873,7 +2873,7 @@ CommandAttr($$)
} }
if($remove && $attr{$sdev} && $attr{$sdev}{$attrName}) { if($remove && $attr{$sdev} && $attr{$sdev}{$attrName}) {
my $v = $attr{$sdev}{$attrName}; my $v = $attr{$sdev}{$attrName};
$v =~ s/\s*$attrVal\s*//; $v =~ s/\b$attrVal\b//;
$attrVal = $v; $attrVal = $v;
} }