readingsUpdate changed to ReadingsBulkUpdate

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2106 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert
2012-11-10 16:38:07 +00:00
parent b5668b68a0
commit a540809a6d

View File

@@ -136,7 +136,7 @@ SolarView_Define($$)
for my $get (@gets) for my $get (@gets)
{ {
readingsUpdate($hash, SolarView_WR($hash, $get, $wr), $hash->{Invalid}); readingsBulkUpdate($hash, SolarView_WR($hash, $get, $wr), $hash->{Invalid});
} }
} }
@@ -237,7 +237,7 @@ SolarView_Update($)
# update Readings # update Readings
for my $get (@gets) for my $get (@gets)
{ {
readingsUpdate($hash, SolarView_WR($hash, $get, $wr), $readings{$get}); readingsBulkUpdate($hash, SolarView_WR($hash, $get, $wr), $readings{$get});
} }
readingsEndUpdate($hash, $init_done); readingsEndUpdate($hash, $init_done);
@@ -312,21 +312,21 @@ SolarView_IsNight($)
for my $wr (@{$hash->{Inverters}}) for my $wr (@{$hash->{Inverters}})
{ {
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0); readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0);
} }
if ($mday == 1) if ($mday == 1)
{ {
for my $wr (@{$hash->{Inverters}}) for my $wr (@{$hash->{Inverters}})
{ {
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0); readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0);
} }
if ($mon == 0) if ($mon == 0)
{ {
for my $wr (@{$hash->{Inverters}}) for my $wr (@{$hash->{Inverters}})
{ {
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0); readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0);
} }
} }
} }