From c6bc38791230f12ba673098a62fe4a18f7964c44 Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Sat, 27 Sep 2025 18:29:32 +0000 Subject: [PATCH] 76_SolarForecast: contrib V1.58.6 git-svn-id: https://svn.fhem.de/fhem/trunk@30332 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 264f7b2ad..6806e8ce0 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -14380,15 +14380,14 @@ sub _calcReadingsTomorrowPVFc { my $t = $paref->{t}; my $hash = $defs{$name}; - my $h = $data{$name}{nexthours}; my $hods = AttrVal ($name, 'ctrlNextDayForecastReadings', ''); - return if(!keys %{$h} || !$hods); + return if(!$hods || !keys %{$data{$name}{nexthours}}); my $dt = timestringsFromOffset ($t, 86400); my $tmoday = $dt->{day}; # Tomorrow Day (01..31) - for my $idx (sort keys %{$h}) { + for my $idx (sort keys %{$data{$name}{nexthours}}) { my $day = NexthoursVal ($hash, $idx, 'day', 'dd'); next if($day ne $tmoday); # aktueller Tag wird nicht benötigt