fix(energiediagramm): Symcon-8-Darstellung korrigieren

This commit is contained in:
dh
2026-09-29 06:24:29 +00:00
parent 1f945be8f1
commit 40c6a17dd1
6 changed files with 52 additions and 14 deletions
+4 -1
View File
@@ -37,7 +37,10 @@ class Energiediagramm extends IPSModule
$this->RegisterAttributeString(self::ATTR_CUSTOM_START, $today);
$this->RegisterAttributeString(self::ATTR_CUSTOM_END, $today);
$this->SetVisualizationType(1);
$visualizationType = version_compare(IPS_GetKernelVersion(), '9.0', '>=')
? 2
: 1;
$this->SetVisualizationType($visualizationType);
$this->RegisterTimer(
'Refresh',
0,