98_structure.pm: devices defined after the structure are now included (Forum #82604, #82661)

git-svn-id: https://svn.fhem.de/fhem/trunk@15875 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2018-01-13 17:17:49 +00:00
parent 8da9c1cbbc
commit d115655098

View File

@@ -92,13 +92,13 @@ structure_Define($$)
$hash->{ATTR} = $stype;
$hash->{CHANGEDCNT} = 0;
structure_setDevs($hash, $def);
$hash->{".asyncQueue"} = [];
@a = ( "set", $devname, $stype, $devname );
structure_Attr(@a);
InternalTimer(1, sub {
structure_setDevs($hash, $def);
@a = ( "set", $devname, $stype, $devname );
structure_Attr(@a);
}, undef, 0);
return undef;
}