Skip to content

Commit 67d3e3c

Browse files
authored
fix error handling internal chargepoint (#2255)
1 parent a3a6024 commit 67d3e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/modules/internal_chargepoint_handler/internal_chargepoint_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _loop():
212212
time.sleep(1.1)
213213
with SingleComponentUpdateContext(self.fault_state_info_cp0, update_always=False):
214214
# Allgemeine Fehlermeldungen an LP 1
215-
if self.cp0.mode == InternalChargepointMode.PRO_PLUS.value:
215+
if self.cp0 is not None and self.cp0.mode == InternalChargepointMode.PRO_PLUS.value:
216216
_loop()
217217
elif self.cp0_client_handler is None and self.cp1_client_handler is None:
218218
log.error("Kein ClientHandler vorhanden. Beende.")

0 commit comments

Comments
 (0)