2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

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 876264aaa7
commit 8f9b41df4c

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($@) {