no message

This commit is contained in:
dh
2025-04-08 08:33:00 +02:00
parent bc2f4c439b
commit ab022ca265
+3 -3
View File
@@ -97,12 +97,12 @@ class Ladestation_v2 extends IPSModule
public function Detect_Car(int $carType) public function Detect_Car(int $carType)
{ {
$full = false; $is_full = false;
if($this->GetValue("Car_Detected")){ if($this->GetValue("Car_Detected")){
if($this->Get_Car_Status($carType)==true){ if($this->Get_Car_Status($carType)==true){
$this->SetValue("Car_Detected", true); $this->SetValue("Car_Detected", true);
if($this->GetValue("Max_Current")<6){ if($this->GetValue("Max_Current")<6){
$full = true; $is_full = true;
} }
}else{ }else{
@@ -146,7 +146,7 @@ class Ladestation_v2 extends IPSModule
} }
} }
$this-SetValue("Car_is_full", $full); $this-SetValue("Car_is_full", $is_full);
return $this->GetValue("Car_Detected"); return $this->GetValue("Car_Detected");
} }