From da2c8d7cb606a8bbade1d57a43b7756c6aed3743 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 17 May 2022 15:25:54 +0000 Subject: [PATCH] 76_Solarforcast: contrib 0.62.0 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@26053 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/DS_Starter/76_SolarForecast.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/DS_Starter/76_SolarForecast.pm b/contrib/DS_Starter/76_SolarForecast.pm index cb915541d..bbf186594 100644 --- a/contrib/DS_Starter/76_SolarForecast.pm +++ b/contrib/DS_Starter/76_SolarForecast.pm @@ -7255,7 +7255,7 @@ sub isAddSwitchOffCond { my $swoffcondregex = ConsumerVal ($hash, $c, "swoffcondregex", ""); # Regex einer vorrangigen Ausschaltbedingung my $condstate = ReadingsVal ($dswoffcond, $rswoffcond, ""); - if ($condstate =~ m/^$swoffcondregex$/x) { + if ($condstate && $condstate =~ m/^$swoffcondregex$/x) { return (1, $info, $err); }