From 8d2045d0ad8449aa17b99c7df9c2eb722361b86e Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Thu, 5 Feb 2026 14:27:41 +0100 Subject: [PATCH] fix pro: don't retain error message of boot --- .../modules/chargepoints/openwb_pro/chargepoint_module.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/modules/chargepoints/openwb_pro/chargepoint_module.py b/packages/modules/chargepoints/openwb_pro/chargepoint_module.py index 9788437a70..0c790f2280 100644 --- a/packages/modules/chargepoints/openwb_pro/chargepoint_module.py +++ b/packages/modules/chargepoints/openwb_pro/chargepoint_module.py @@ -42,10 +42,14 @@ def __init__(self, config: OpenWBPro) -> None: self.client_error_context = ErrorTimerContext( f"openWB/set/chargepoint/{self.config.id}/get/error_timestamp", CP_ERROR, hide_exception=True) - with SingleComponentUpdateContext(self.fault_state, update_always=False): + 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_internal_context_handlers(self, hierarchy_id: int, internal_cp: InternalChargepoint): self.fault_state = FaultState(ComponentInfo(