mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_structure.pm: Fix WARNING for set called from fhen.cfg (Forum #82661)
git-svn-id: https://svn.fhem.de/fhem/trunk@15900 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2cdced2725
commit
c85939f99b
@ -94,10 +94,10 @@ structure_Define($$)
|
|||||||
$hash->{CHANGEDCNT} = 0;
|
$hash->{CHANGEDCNT} = 0;
|
||||||
$hash->{".asyncQueue"} = [];
|
$hash->{".asyncQueue"} = [];
|
||||||
|
|
||||||
InternalTimer(1, sub {
|
structure_setDevs($hash, $def); # needed by set while init is running
|
||||||
|
InternalTimer(1, sub { # repeat it for devices defined later
|
||||||
structure_setDevs($hash, $def);
|
structure_setDevs($hash, $def);
|
||||||
@a = ( "set", $devname, $stype, $devname );
|
structure_Attr("set", $devname, $stype, $devname);
|
||||||
structure_Attr(@a);
|
|
||||||
}, undef, 0);
|
}, undef, 0);
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user