From f841a96cb6b5139ed5005eae0366f00997ca6ce2 Mon Sep 17 00:00:00 2001 From: borisneubert <> Date: Sat, 10 Nov 2012 16:38:07 +0000 Subject: [PATCH] readingsUpdate changed to ReadingsBulkUpdate git-svn-id: https://svn.fhem.de/fhem/trunk@2106 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/70_SolarView.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/70_SolarView.pm b/fhem/contrib/70_SolarView.pm index 996c89d9b..c04f0beeb 100644 --- a/fhem/contrib/70_SolarView.pm +++ b/fhem/contrib/70_SolarView.pm @@ -136,7 +136,7 @@ SolarView_Define($$) 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 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); @@ -312,21 +312,21 @@ SolarView_IsNight($) for my $wr (@{$hash->{Inverters}}) { - readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0); + readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0); } if ($mday == 1) { for my $wr (@{$hash->{Inverters}}) { - readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0); + readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0); } if ($mon == 0) { for my $wr (@{$hash->{Inverters}}) { - readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0); + readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0); } } }