semikolon falsch gesetzt
This commit is contained in:
@@ -275,12 +275,11 @@ class Ladestation_Universal extends IPSModule
|
||||
$response = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
return $response;
|
||||
}
|
||||
|
||||
}
|
||||
// For value between 1 and 32, make two requests
|
||||
elseif ($value >= 1 && $value <= 32) {
|
||||
// First request
|
||||
if ($value == 0) {
|
||||
if(ReadPropertyInteger("Ladestation")==2){
|
||||
$url = $baseUrl . "frc=2";
|
||||
}elseif(ReadPropertyInteger("Ladestation")==1){
|
||||
@@ -299,7 +298,7 @@ class Ladestation_Universal extends IPSModule
|
||||
|
||||
// Second request
|
||||
|
||||
if ($value == 0) {
|
||||
|
||||
if(ReadPropertyInteger("Ladestation")==2){
|
||||
$url2 = $baseUrl . "amp=$value";
|
||||
}elseif(ReadPropertyInteger("Ladestation")==1){
|
||||
@@ -326,6 +325,7 @@ class Ladestation_Universal extends IPSModule
|
||||
else {
|
||||
return "Invalid value. Must be between 0 and 32.";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function convertPowerToCurrent($value, $Lademodus)
|
||||
@@ -525,5 +525,6 @@ class Ladestation_Universal extends IPSModule
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.191",
|
||||
"version": "0.192",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user