Skip to content

Commit beceff8

Browse files
committed
Fix a missed conversion from removing the multi-slot logic
1 parent 4d5bbd6 commit beceff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/predbat/predbat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4298,7 +4298,7 @@ def publish_json_plan(self, pv_forecast_minute_step, pv_forecast_minute_step10,
42984298
slot["state"]["limit"] = limit
42994299
elif limit < 100:
43004300
# TODO: figure out the split state logic, and how to reflect it here
4301-
if limit > soc_percent_max_window:
4301+
if limit > soc_percent_max:
43024302
slot["state"]["mode"] = "Hold discharge"
43034303
else:
43044304
slot["state"]["mode"] = "Discharge"

0 commit comments

Comments
 (0)