fhem.pl: fix autocreate if for "input-only" devices (Forum #125292)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25521 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-01-20 18:25:19 +00:00
parent f09f16a28f
commit f5b2ce099f

View File

@ -4119,6 +4119,7 @@ Dispatch($$;$$)
my @tfound = &{$modules{$mname}{ParseFn}}($hash,$dmsg); my @tfound = &{$modules{$mname}{ParseFn}}($hash,$dmsg);
use strict "refs"; $readingsUpdateDelayTrigger = 0; use strict "refs"; $readingsUpdateDelayTrigger = 0;
$parserMod = $mname; $parserMod = $mname;
delete($hash->{".clientArray"});
if(int(@tfound) && defined($tfound[0])) { if(int(@tfound) && defined($tfound[0])) {
if($tfound[0] && $tfound[0] eq "[NEXT]") { if($tfound[0] && $tfound[0] eq "[NEXT]") {
@ -4129,7 +4130,6 @@ Dispatch($$;$$)
last; last;
} }
} }
delete($hash->{".clientArray"});
} else { } else {
Log 0, "ERROR: Cannot autoload $mname"; Log 0, "ERROR: Cannot autoload $mname";