Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve text #1090

Merged
merged 1 commit into from
Aug 9, 2023
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
10 changes: 6 additions & 4 deletions packages/control/chargepoint/chargepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ def _is_phase_switch_required(self, charging_ev: Ev) -> bool:
return True
return False

STOP_CHARGING = ", dafür wird die Ladung unterbrochen."

def initiate_phase_switch(self):
"""prüft, ob eine Phasenumschaltung erforderlich ist und führt diese durch.
"""
Expand Down Expand Up @@ -549,9 +551,9 @@ def initiate_phase_switch(self):
else:
# Wenn eine Umschaltung im Gange ist, muss erst gewartet werden, bis diese fertig ist.
if self.data.set.phases_to_use == 1:
message = f"Umschaltung von {self.get_max_phase_hw()} auf 1 Phase."
message = f"Umschaltung von {self.get_max_phase_hw()} auf 1 Phase{self.STOP_CHARGING}"
else:
message = f"Umschaltung von 1 auf {self.get_max_phase_hw()} Phasen."
message = f"Umschaltung von 1 auf {self.get_max_phase_hw()} Phasen{self.STOP_CHARGING}"
self.set_state_and_log(message)
return
if charging_ev.data.control_parameter.state == ChargepointState.WAIT_FOR_USING_PHASES:
Expand Down Expand Up @@ -580,12 +582,12 @@ def initiate_phase_switch(self):
"control_parameter phases " +
str(charging_ev.data.control_parameter.phases))
if charging_ev.data.control_parameter.phases == 1:
message = f"Umschaltung von {self.get_max_phase_hw()} auf 1 Phase."
message = f"Umschaltung von {self.get_max_phase_hw()} auf 1 Phase{self.STOP_CHARGING}"
# Ladeleistung reservieren, da während der Umschaltung die Ladung pausiert wird.
evu_counter.data.set.reserved_surplus += charging_ev. \
ev_template.data.max_current_single_phase * 230
else:
message = f"Umschaltung von 1 auf {self.get_max_phase_hw()} Phasen."
message = f"Umschaltung von 1 auf {self.get_max_phase_hw()} Phasen{self.STOP_CHARGING}"
# Ladeleistung reservieren, da während der Umschaltung die Ladung pausiert wird.
evu_counter.data.set.reserved_surplus += charging_ev. \
ev_template.data.max_current_single_phase * 3 * 230
Expand Down