2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: prohibit setreading called from userReadings (Forum #110375)

git-svn-id: https://svn.fhem.de/fhem/trunk@21723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-04-19 15:52:48 +00:00
parent 247c93e7d5
commit d274bfe2e2

View File

@ -2418,7 +2418,8 @@ CommandSetReading($$)
if(!goodReadingName($b1)); if(!goodReadingName($b1));
if($hash->{".updateTime"}) { # Called from userReadings, #110375 if($hash->{".updateTime"}) { # Called from userReadings, #110375
setReadingsVal($hash, $b1, $b[2], TimeNow()); Log 1, "'setreading $def' called form userReadings is prohibited";
return;
} else { } else {
readingsSingleUpdate($hash, $b1, $b[2], 1); readingsSingleUpdate($hash, $b1, $b[2], 1);
} }