json korrekt format

This commit is contained in:
2025-02-05 16:02:03 +01:00
parent 9d05e71567
commit 05a56704ce
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -82,11 +82,12 @@ class Boiler_2_Stufig_Landwirtschaft extends IPSModule
}
public function getNextTimeAndTemperature($zeitplan) {
if (empty($zeitplan)) {
$arr = json_decode($arrString);
if (empty($arr)) {
return null;
}
$currentTime = date('H:i');
foreach ($zeitplan as $entry) {
foreach ($arr as $entry) {
if ($entry['Uhrzeit'] > $currentTime) {
return $entry;
}
+1 -1
View File
@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "1.032",
"version": "1.033",
"build": 0,
"date": 0
}