mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: avoid undefined reading for empty setreading (Forum #43404)
git-svn-id: https://svn.fhem.de/fhem/trunk@9755 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0bbd056859
commit
85bc15a680
@ -2503,6 +2503,7 @@ CommandSetstate($$)
|
||||
my ($sname, $sval) = split(" ", $nameval, 2);
|
||||
(undef, $sval) = ReplaceEventMap($sdev, [$sdev, $sval], 0)
|
||||
if($attr{$sdev}{eventMap});
|
||||
$sval = "" if(!defined($sval));
|
||||
my $ret = CallFn($sdev, "StateFn", $d, $tim, $sname, $sval);
|
||||
if($ret) {
|
||||
push @rets, $ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user