You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e814aa5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(output): narrow #4445 to the Chrg/HoldChrg decision, keep displaying the predicted SoC
Decide Chrg vs HoldChrg from the real charge_limit_best, but keep the
Limit cell, the reason text and state_target on the window's predicted
end-of-window SoC, which is what docs/predbat-plan-card.md says the
Limit column shows and what #4445's agreed fix direction asked for.
Showing the instruction instead made every window that clip_charge_slots
raises to a full charge read 100% while the plan only expects it to
reach a lower SoC. This restores get_charge_export_text and the
plan_debug bracket order (predicted, then limit) to their main
behaviour, and reworks the tests: the SoC-between-target-and-limit case
fails on main with HoldChrg, a real hold still shows HoldChrg, and the
plan_debug cell and text summary show the predicted SoC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
text="force exporting to {}% for the next {}".format(target_export, self.duration_string(self.export_window_best[export_window_n]["end"] -minutes_now))
text="freeze charging to {}%{} for the next {}".format(target_charge, target_suffix, self.duration_string(self.charge_window_best[charge_window_n]["end"] -minutes_now))
text="freeze charging to {}% for the next {}".format(target_charge, self.duration_string(self.charge_window_best[charge_window_n]["end"] -minutes_now))
867
858
else:
868
-
text="charging to {}%{} for the next {}".format(target_charge, target_suffix, self.duration_string(self.charge_window_best[charge_window_n]["end"] -minutes_now))
859
+
text="charging to {}% for the next {}".format(target_charge, self.duration_string(self.charge_window_best[charge_window_n]["end"] -minutes_now))
0 commit comments