array korregieren

This commit is contained in:
belevo\mh
2025-02-24 10:56:11 +01:00
parent 0899a6d58a
commit c2d71b166e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -172,8 +172,8 @@ public function RequestAction($Ident, $Value)
} else {
$dummy_array = $array_powersteps[0];
$dummy_array[] = $array_powersteps[0];
$this->SetValue("PowerSteps", json_encode($dummy_array));
}
@@ -182,7 +182,7 @@ public function RequestAction($Ident, $Value)
if ($batterieladezustand <= $minimumentladen) {
$dummy_array = max($array_powersteps);
$dummy_array[] = max($array_powersteps);
$this->SetValue("PowerSteps", json_encode($dummy_array));
} else {
$filtered_powersteps = array_filter($array_powersteps, function ($value) use ($maxleistung) {
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "1.056",
"version": "1.057",
"build": 0,
"date": 0
}