2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 06:08:44 +00:00

98_dummy.pm: fix readingList for special characters (Forum #97576)

git-svn-id: https://svn.fhem.de/fhem/trunk@18649 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-02-19 19:24:47 +00:00
parent f129928d71
commit 55103443ca

View File

@ -48,7 +48,7 @@ dummy_Set($@)
my @rl = split(" ", AttrVal($name, "readingList", ""));
my $doRet;
eval {
if(@rl && grep /\b$a[0]\b/, @rl) {
if(@rl && grep /^$a[0]$/, @rl) {
my $v = shift @a;
readingsSingleUpdate($hash, $v, join(" ",@a), 1);
$doRet = 1;