Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_values(self) -> None:
chargepoint_state = self.request_values()
self.store.set(chargepoint_state)

def request_values(self) -> None:
def request_values(self) -> ChargepointState:
with self.client_error_context:
chargepoint_state = self.old_chargepoint_state
ip_address = self.config.configuration.ip_address
Expand Down
1 change: 1 addition & 0 deletions packages/modules/internal_chargepoint_handler/pro_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def store_state(chargepoint_state: ChargepointState) -> None:

try:
chargepoint_state = super().request_values()
chargepoint_state.rfid = last_tag
except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError):
raise Exception("Interner Ladepunkt ist nicht erreichbar.")

Expand Down
Loading