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

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

View File

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