Split dashboard into home page and battery list page

This commit is contained in:
2026-06-19 21:43:10 -05:00
parent 1980453cab
commit 0b893ffcbb
9 changed files with 817 additions and 49 deletions
+2 -2
View File
@@ -314,7 +314,7 @@ def test_poll_handles_api_error_gracefully(ha_app, ha_client_f):
# ---------------------------------------------------------------------------
def test_dashboard_shows_ha_column_when_enabled(ha_client_f):
resp = ha_client_f.get("/")
resp = ha_client_f.get("/battery/")
assert resp.status_code == 200
assert b"ha-pct" in resp.data
@@ -351,7 +351,7 @@ def test_dashboard_no_warning_for_high_percentage(ha_app, ha_client_f):
s.commit()
s.close()
resp = ha_client_f.get("/")
resp = ha_client_f.get("/battery/")
assert b"85%" in resp.data
# badge-warning should NOT appear for this battery's percentage
# (may still appear in page for other reasons, so check row contains 85% but not warning badge near it)