2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

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 0bb999b2b3
commit b2651513bf

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;
}