2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 14:04:15 +00:00

fhem.pl: setreading check for good reading characters (Forum #83840)

git-svn-id: https://svn.fhem.de/fhem/trunk@16087 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-02-04 19:52:51 +00:00
parent a06509309c
commit c11b99baed

View File

@ -2247,6 +2247,8 @@ CommandSetReading($$)
($err, @b) = ReplaceSetMagic($hash, 3, @a);
delete $hash->{CL};
}
return "WARNING: unsupported character in reading $b[1] ".
"(not A-Za-z/\\d_\\.-)" if(!goodReadingName($b[1]));
readingsSingleUpdate($defs{$sdev}, $b[1], $b[2], 1);
}
return join("\n", @rets);