mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 01:46:08 +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:
parent
a06509309c
commit
c11b99baed
@ -2247,6 +2247,8 @@ CommandSetReading($$)
|
|||||||
($err, @b) = ReplaceSetMagic($hash, 3, @a);
|
($err, @b) = ReplaceSetMagic($hash, 3, @a);
|
||||||
delete $hash->{CL};
|
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);
|
readingsSingleUpdate($defs{$sdev}, $b[1], $b[2], 1);
|
||||||
}
|
}
|
||||||
return join("\n", @rets);
|
return join("\n", @rets);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user