Skip to content

Commit

Permalink
fix PHASE_SWITCH_DELAY_EXPIRED and no phase switch required (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel authored Jun 28, 2024
1 parent 5cdab51 commit 9aeb35c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/control/chargepoint/chargepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ def initiate_phase_switch(self):
else:
log.error("Phasenumschaltung an Ladepunkt" + str(self.num) +
" nicht möglich, da gerade eine Umschaltung im Gange ist.")
elif self.data.control_parameter.state == ChargepointState.PHASE_SWITCH_DELAY_EXPIRED:
# Wenn keine Phasenumschaltung durchgeführt wird, Status auf CHARGING_ALLOWED setzen, sonst
# bleibt PHASE_SWITCH_DELAY_EXPIRED stehen.
self.data.control_parameter.state = ChargepointState.CHARGING_ALLOWED
else:
log.error(
"Phasenumschaltung an Ladepunkt" + str(self.num) +
Expand Down

0 comments on commit 9aeb35c

Please sign in to comment.