fhem.pl: enable json2reading from userreading (Forum #138149)

git-svn-id: https://svn.fhem.de/fhem/trunk@28849 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2024-05-07 08:54:34 +00:00
parent 329417ba29
commit 013cf59f87

View File

@@ -4946,8 +4946,14 @@ readingsEndUpdate($$)
#Debug "Evaluating " . $reading;
$cmdFromAnalyze = $perlCode; # For the __WARN__ sub
my $NAME = $name; # no exceptions, #53069
my $stopRecursion = ".evalUserReading_$reading";
next if($hash->{$stopRecursion}); # No warning / #138149
$hash->{$stopRecursion} = 1;
my $value= eval $perlCode;
delete($hash->{$stopRecursion});
$cmdFromAnalyze = undef;
my $result;
# store result
if($@) {