2
0
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:
justme-1968 2017-03-17 09:20:15 +00:00
parent cc9d5928c8
commit dae74c29db

View File

@ -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 );