mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
33_readingsProxy.pm: optimized startup
git-svn-id: https://svn.fhem.de/fhem/trunk@13720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc9d5928c8
commit
dae74c29db
@ -97,7 +97,9 @@ sub readingsProxy_Define($$)
|
||||
|
||||
$hash->{STATE} = 'Initialized';
|
||||
|
||||
readingsProxy_updateDevices($hash);
|
||||
if( $init_done ) {
|
||||
readingsProxy_updateDevices($hash);
|
||||
}
|
||||
|
||||
return undef;
|
||||
}
|
||||
@ -153,11 +155,11 @@ readingsProxy_Notify($$)
|
||||
if( grep(m/^INITIALIZED$/, @{$events}) ) {
|
||||
readingsProxy_updateDevices($hash);
|
||||
return undef;
|
||||
}
|
||||
elsif( grep(m/^REREADCFG$/, @{$events}) ) {
|
||||
} elsif( grep(m/^REREADCFG$/, @{$events}) ) {
|
||||
readingsProxy_updateDevices($hash);
|
||||
return undef;
|
||||
}
|
||||
return if( !$init_done );
|
||||
|
||||
return if( AttrVal($name,"disable", 0) > 0 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user