uz lepsi ale nabije v zaporu jen na 92%, odstranena nejaka konstanta
Some checks failed
CI and deploy / migration-check (push) Failing after 12s
CI and deploy / deploy (push) Has been skipped

This commit is contained in:
Dusan Vojacek
2026-05-23 23:41:52 +02:00
parent 7ff2abc7e0
commit ce571a93fa
4 changed files with 70 additions and 16 deletions

View File

@@ -1222,12 +1222,17 @@ class NegativeSellPvChargeTests(unittest.TestCase):
50.0,
operating_mode="AUTO",
)
self.assertEqual(snap.get("planner_build_tag"), "2026-05-24-neg-sell-v2")
self.assertEqual(snap.get("planner_build_tag"), "2026-05-24-neg-sell-v3")
self.assertGreater(
results[0].battery_setpoint_w,
5_500,
f"od ~51 % SoC má první neg slot nabíjet max, got {[r.battery_setpoint_w for r in results]}",
)
self.assertGreaterEqual(
max(r.battery_soc_target for r in results),
round(float(battery.soc_max_wh) / battery.usable_capacity_wh * 100, 1) - 0.5,
"neg okno má dobít na planner soc_max, ne ~92 %",
)
class AutoPvSurplusExportTests(unittest.TestCase):