From 9b7efc63bc9fb7416c112b6353a2f924c6b74363 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 25 Feb 2025 09:28:21 +0100 Subject: [PATCH] Array korrigiert --- Batterie/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Batterie/module.php b/Batterie/module.php index 398be66..07a8133 100644 --- a/Batterie/module.php +++ b/Batterie/module.php @@ -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)); } diff --git a/library.json b/library.json index e6b65d0..a4945ee 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.074", + "version": "1.075", "build": 0, "date": 0 } \ No newline at end of file