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:
parent
247c93e7d5
commit
d274bfe2e2
@ -2418,7 +2418,8 @@ CommandSetReading($$)
|
||||
if(!goodReadingName($b1));
|
||||
|
||||
if($hash->{".updateTime"}) { # Called from userReadings, #110375
|
||||
setReadingsVal($hash, $b1, $b[2], TimeNow());
|
||||
Log 1, "'setreading $def' called form userReadings is prohibited";
|
||||
return;
|
||||
} else {
|
||||
readingsSingleUpdate($hash, $b1, $b[2], 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user