From 8311acc5fa691ab88c8b122edad18ce50155e743 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Thu, 27 Jun 2019 10:54:05 +0000 Subject: [PATCH] 76_SMAPortal: contrib 2.4.0 git-svn-id: https://svn.fhem.de/fhem/trunk@19722 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SMAPortal.pm | 6 +++++- fhem/contrib/DS_Starter/76_SMAPortalSPG.pm | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SMAPortal.pm b/fhem/contrib/DS_Starter/76_SMAPortal.pm index 790fb9733..4374122f1 100644 --- a/fhem/contrib/DS_Starter/76_SMAPortal.pm +++ b/fhem/contrib/DS_Starter/76_SMAPortal.pm @@ -1156,7 +1156,11 @@ sub extractForecastData($$) { my $plantOid = $forecast->{'ForecastTimeframes'}->{'PlantOid'}; $hash->{HELPER}{PLANTOID} = $plantOid; # wichtig für erweiterte Selektionen - Log3 ($name, 4, "$name - Plant ID set to: ".$hash->{HELPER}{PLANTOID}); + if ($hash->{HELPER}{PLANTOID}) { + Log3 ($name, 4, "$name - Plant ID set to: ".$hash->{HELPER}{PLANTOID}); + } else { + Log3 ($name, 4, "$name - Plant ID not set !"); + } readingsBeginUpdate($hash); diff --git a/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm b/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm index fabdde0d2..a8e97b1a2 100644 --- a/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm +++ b/fhem/contrib/DS_Starter/76_SMAPortalSPG.pm @@ -41,8 +41,6 @@ our %SMAPortalSPG_vNotesIntern = ( "1.0.0" => "03.06.2019 initial Version " ); -sub SMAPortalSPG_AsHtml($;$$); - ################################################################ sub SMAPortalSPG_Initialize($) { my ($hash) = @_;