Skip to content

Commit

Permalink
fix soc error and scheduled charging (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel authored Nov 25, 2024
1 parent 58a8347 commit 656cb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/control/ev.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def calculate_duration(self,
charging_type: str,
ev_template: EvTemplate) -> Tuple[float, float]:
if plan.limit.selected == "soc":
if soc:
if soc is not None:
missing_amount = ((plan.limit.soc_scheduled - soc) / 100) * battery_capacity
else:
raise ValueError("Um Zielladen mit SoC-Ziel nutzen zu können, bitte ein SoC-Modul konfigurieren.")
Expand Down

0 comments on commit 656cb5c

Please sign in to comment.