Exclude retired batteries from dashboard warnings

This commit is contained in:
2026-04-14 19:40:11 -05:00
parent 5d8fb5aa68
commit e4130bb329
3 changed files with 43 additions and 3 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ def create_app(config_object="config"):
and b.tested_capacity_mah < 0.8 * b.capacity_mah
],
"low_pct": [
b for b in batteries
b for b in active
if b.battery_percentage is not None and b.battery_percentage < 20
] if ha_client.enabled else [],
}