no message

This commit is contained in:
mh
2026-05-12 10:06:58 +02:00
parent b3f6ad62e0
commit f6afc892d3
+10 -4
View File
@@ -67,7 +67,13 @@ class Bat_EV_SDL_V4 extends IPSModule
);
$this->BuildBatteryPlan(true);
$this->InitVirtualAccountsIfNeeded();
// Kein automatischer Reset der virtuellen Konten bei ApplyChanges.
// Nur Initialisierung von Zeitstempel/Init-Flag, falls noch nie vorhanden.
if ($this->GetBufferSafe("Int_Init") !== "1") {
$this->SetBuffer("Int_LastTs", (string)microtime(true));
$this->SetBuffer("Int_Init", "1");
}
$this->Update();
}
@@ -345,10 +351,10 @@ class Bat_EV_SDL_V4 extends IPSModule
private function InitVirtualAccountsIfNeeded(): void
{
if ($this->GetBufferSafe("Int_Init") === "1") {
return;
if ($this->GetBufferSafe("Int_Init") !== "1") {
$this->SetBuffer("Int_LastTs", (string)microtime(true));
$this->SetBuffer("Int_Init", "1");
}
$this->ResetVirtualAccounts();
}
public function ResetVirtualAccounts(): void