dalsi fix home-01
This commit is contained in:
@@ -619,6 +619,9 @@ def _recompute_charge_acquisition_from_results(
|
||||
for s, r in zip(slots, results):
|
||||
if not s.allow_charge:
|
||||
continue
|
||||
# Zaporne buy sloty (OTE) nejsou grid acquisition pro arbitraz exportu baterie.
|
||||
if float(s.buy_price) < 0:
|
||||
continue
|
||||
gi_w = max(0, int(r.grid_setpoint_w or 0))
|
||||
bc_w = max(0, int(r.battery_setpoint_w or 0))
|
||||
wh = (gi_w + bc_w) * INTERVAL_H
|
||||
|
||||
Reference in New Issue
Block a user