From 4146c83394faacebc637b74ea8a14fbff3b491f0 Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Tue, 11 Nov 2025 10:20:06 +0000 Subject: [PATCH] 76_SolarForecast: contrib Version 1.60.4 git-svn-id: https://svn.fhem.de/fhem/trunk@30520 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 6c54abc70..7ef0a1f68 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -12724,10 +12724,10 @@ sub ___batFindMinPhWh { my $nhr = $hsurp->{$hod}{nhr}; next if(!defined $nhr); - if ($nhr eq '00') { $cap = min ($mid, $hsurp->{$hod}{surplswh}) / 60 * (60 - int $minute)} # Zeitgewichtung aktuelle Stunde - else { $cap = min ($mid, $hsurp->{$hod}{surplswh})} + if ($nhr eq '00') { $cap = min ($mid, $hsurp->{$hod}{surplswh}) / 60 * (60 - int $minute) } # Zeitgewichtung aktuelle Stunde + else { $cap = min ($mid, $hsurp->{$hod}{surplswh}) } - $charged += $cap; + $charged += $cap // 0; } $charged >= $Ereq ? ($high = $mid) : ($low = $mid);