Array korrigiert

This commit is contained in:
belevo\mh
2025-02-25 09:28:21 +01:00
parent 4daa5628d7
commit 9b7efc63bc
2 changed files with 3 additions and 3 deletions

View File

@@ -146,7 +146,7 @@ public function RequestAction($Ident, $Value)
$batterieManagement = $this->ReadPropertyInteger("Batteriemanagement");
if ($batterieManagement == 1) {
$dummy_array[] = $array_powersteps[0];
$dummy_array[] = 0;
return $this->SetValue("PowerSteps", json_encode($dummy_array));
}
@@ -181,8 +181,8 @@ public function RequestAction($Ident, $Value)
} else {
$dummy_array[] = $array_powersteps[0];
$dummy_array[] = 0;
$this->SetValue("PowerSteps", json_encode($dummy_array));
}