no message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user