mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fhem.pl: Avoid warning and help localize bad userReadings definition (Forum #70999)
git-svn-id: https://svn.fhem.de/fhem/trunk@14096 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4121ebceae
commit
bc9c7c8950
@ -4226,6 +4226,9 @@ readingsEndUpdate($$)
|
||||
$value = "Error evaluating $name userReading $reading: $@";
|
||||
Log 1, $value;
|
||||
$result= $value;
|
||||
} elsif(!defined($value)) {
|
||||
warn("$name userReadings $reading evaluated to undef");
|
||||
next;
|
||||
} elsif($modifier eq "none") {
|
||||
$result= $value;
|
||||
} elsif($modifier eq "difference") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user