From 2d9cb2b2ea94eaf8c4846eb8691373b2d2066278 Mon Sep 17 00:00:00 2001 From: "ch.eick" <> Date: Tue, 5 Mar 2024 12:14:03 +0000 Subject: [PATCH] ch.eick: Output of DbRep reports in uiTable cleaned git-svn-id: https://svn.fhem.de/fhem/trunk@28597 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- .../ch.eick/Photovoltaik/Wechselrichter/RAW_WR_ctl.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_ctl.txt b/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_ctl.txt index dc8d6a18d..e0504a90c 100644 --- a/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_ctl.txt +++ b/fhem/contrib/ch.eick/Photovoltaik/Wechselrichter/RAW_WR_ctl.txt @@ -317,8 +317,8 @@ sub WR_ctl_Format {\ $QuarterPrevious = "Q".$loop \ }\ }\ - if ($period eq "_Qx") {\ - return $QuarterPrevious;;\ + if ($period eq "_Qx" and $QuarterPrevious ne "null") {\ + return $QuarterPrevious;;\ }\ }\ \ @@ -400,7 +400,7 @@ sub WR_ctl_Format {\ $value .= ($YearPrevious ne "null") ? sprintf(" / %05d", ::ReadingsVal($YearBefore,$reading.$period,0) ) : "";;\ return $value;;\ }\ - return " / null";;\ + return ;;\ }\ \ }\