File tree Expand file tree Collapse file tree
packages/control/chargepoint Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,13 +160,15 @@ def _is_manual_lock_inactive(self) -> Tuple[bool, Optional[str]]:
160160 # Vergleiche werden case-insensitive durchgeführt
161161 # das vereinfacht die Eingabe, kann aber auch für falsche Treffer sorgen.
162162 # 'fnmatch()' ist case-insensitive
163+ match = False
163164 for tag_id in self .template .data .valid_tags :
164165 if ((self .data .get .rfid is not None and fnmatch (self .data .get .rfid , tag_id )) or
165166 (self .data .get .vehicle_id is not None and fnmatch (self .data .get .vehicle_id , tag_id )) or
166167 (self .data .set .rfid is not None and fnmatch (self .data .set .rfid , tag_id ))):
167- Pub ().pub (f"openWB/set/chargepoint/{ self .num } /set/manual_lock" , False )
168- # Wenn der Ladepunkt nach dem Abstecken gesperrt werden soll, und kein Fahrzeug angeschlossen ist wird gesperrt
169- if self .template .data .disable_after_unplug and self .data .get .plug_state is False :
168+ match = True
169+ if match :
170+ Pub ().pub (f"openWB/set/chargepoint/{ self .num } /set/manual_lock" , False )
171+ elif self .template .data .disable_after_unplug and self .data .get .plug_state is False :
170172 Pub ().pub (f"openWB/set/chargepoint/{ self .num } /set/manual_lock" , True )
171173
172174 if self .data .set .manual_lock :
You can’t perform that action at this time.
0 commit comments