From db76e823492a61a62d350c4293b8ef6881897f53 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 20 Oct 2024 16:52:43 +0000 Subject: [PATCH] 76_SolarForecast: contrib 1.37.0 git-svn-id: https://svn.fhem.de/fhem/trunk@29270 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 6f069b5cd..788c0afaf 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -6924,8 +6924,10 @@ sub centralTask { $newval .= "showconsumerremaintime=$fg7 " if(defined $fg7); $newval .= "shift=$fg8 " if(defined $fg8); - CommandAttr (undef, "$name flowGraphicControl $newval") if($newval); - + if ($newval) { + CommandAttr (undef, "$name flowGraphicControl $newval"); + ::CommandDeleteAttr (undef, "$name flowGraphicSize|flowGraphicAnimate|flowGraphicConsumerDistance|flowGraphicShowConsumer|flowGraphicShowConsumerDummy|flowGraphicShowConsumerPower|flowGraphicShowConsumerRemainTime|flowGraphicShift"); + } ########################################################################################################################## setModel ($hash); # Model setzen @@ -21017,7 +21019,7 @@ to ensure that the system configuration is correct.