Skip to content
Merged
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 @@ -48,11 +48,14 @@ def __init__(self, config: OpenWBDcAdapter) -> None:
"DC-Laden muss durch den Support freigeschaltet werden. Bitte nehme Kontakt mit dem Support auf.")
self.efficiency = None

with SingleComponentUpdateContext(self.fault_state, update_always=False):
with self.client_error_context:
self.__session.post(
'http://' + self.config.configuration.ip_address + '/connect.php',
data={'heartbeatenabled': '1'})
try:
self.__session.post(
f'http://{self.config.configuration.ip_address}/connect.php',
data={'heartbeatenabled': '1'})
except Exception:
log.exception(
f"Verbindung zum Ladepunkt {self.config.id} konnte nicht hergestellt werden. "
"Heartbeat konnte nicht aktiviert werden.")

def set_current(self, current: float) -> None:
if self.client_error_context.error_counter_exceeded():
Expand Down