Skip to content

Commit d7924dc

Browse files
committed
Pro+:RFID-Read plugged to Pi or Pro (#2408)
1 parent 8fd4fe2 commit d7924dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/modules/internal_chargepoint_handler

packages/modules/internal_chargepoint_handler/pro_plus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def store_state(chargepoint_state: ChargepointState) -> None:
2727

2828
try:
2929
chargepoint_state = super().request_values()
30-
chargepoint_state.rfid = last_tag
30+
if last_tag is not None and last_tag != "":
31+
chargepoint_state.rfid = last_tag
3132
except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError):
3233
raise Exception("Interner Ladepunkt ist nicht erreichbar.")
3334

0 commit comments

Comments
 (0)