update state after startup

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4470 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-12-26 17:32:54 +00:00
parent 77d12b81ce
commit b0000db41a

View File

@ -63,6 +63,8 @@ readingsProxy_updateDevices($)
} }
$hash->{CONTENT} = \%list; $hash->{CONTENT} = \%list;
readingsProxy_update($hash, undef);
} }
sub readingsProxy_Define($$) sub readingsProxy_Define($$)
@ -76,11 +78,9 @@ sub readingsProxy_Define($$)
my $name = shift(@args); my $name = shift(@args);
my $type = shift(@args); my $type = shift(@args);
readingsProxy_updateDevices($hash);
$hash->{STATE} = 'Initialized'; $hash->{STATE} = 'Initialized';
readingsProxy_update($hash, undef) if( $init_done ); readingsProxy_updateDevices($hash);
return undef; return undef;
} }