diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 098d29af6..52c06e0ae 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -1447,7 +1447,7 @@ sub _transferInverterValues { my $edaypast = 0; deleteReadingspec ($hash, "Today_Hour00_PVreal"); - for my $hour (0..int($chour)-1) { # alle bisherigen Erzeugungen des Tages summieren + for my $hour (0..int $chour) { # alle bisherigen Erzeugungen des Tages summieren $edaypast += ReadingsNum ($name, "Today_Hour".sprintf("%02d",$hour)."_PVreal", 0); }