Skip to content

Commit

Permalink
Fix issue 1904
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMuki authored Sep 29, 2024
1 parent a6e5b30 commit cee5015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/control/bat_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _max_bat_power_hybrid_system(self, battery: Bat) -> float:
# genutzt werden.
if parent_data.config.max_ac_out > 0:
max_bat_discharge_power = parent_data.config.max_ac_out + \
parent_data.get.power + min(battery.data.get.power, 0)
parent_data.get.power + battery.data.get.power
return max_bat_discharge_power, True
else:
battery.data.get.fault_state = FaultStateLevel.ERROR.value
Expand Down

0 comments on commit cee5015

Please sign in to comment.