feat: Demoanlage an Prognosetopologie anbinden
Tests / test (push) Successful in 49s

This commit is contained in:
dh
2026-09-23 05:46:07 +00:00
parent 1e6481330a
commit f250dea59a
5 changed files with 72 additions and 2 deletions
+7 -2
View File
@@ -156,7 +156,12 @@ class Manager extends IPSModule implements ManagerSchnittstelle
$this->SetTimerInterval('KeepAlive', $this->ReadPropertyInteger('KeepAlive') * 1000);
$this->setzeDiagnosewert('Monatsgrenzen', $this->ReadPropertyString('Monatsgrenzen'));
$this->aktualisiereAnschlussstatus();
if (!$this->aktualisiereLizenzfreigabe($this->ReadPropertyString('Lizenzcode'), false)) {
$geraetezugangFehlt = $this->hatAnlagentopologie()
&& $this->ReadAttributeString('PrognoseInstallationsToken') === '';
if (!$this->aktualisiereLizenzfreigabe(
$this->ReadPropertyString('Lizenzcode'),
$geraetezugangFehlt
)) {
$this->SetValue('Betriebsart', ManagerRegler::BETRIEBSART_INAKTIV);
$this->SetStatus(self::STATUS_LIZENZ_UNGUELTIG);
return;
@@ -265,7 +270,7 @@ class Manager extends IPSModule implements ManagerSchnittstelle
{
return json_encode(
$this->leseAnlagentopologie(),
JSON_THROW_ON_ERROR | JSON_UNESCAPED_SLASHES
JSON_THROW_ON_ERROR | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION
);
}