From 8fb03e1fa3f2c4aad9158d19118d6fddbb60da21 Mon Sep 17 00:00:00 2001 From: Darek Date: Tue, 14 Apr 2026 16:25:11 -0500 Subject: [PATCH] Reduce HA live fetch timeout to 1s --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 6d7c7b0..0f490d3 100644 --- a/app.py +++ b/app.py @@ -665,7 +665,7 @@ def create_app(config_object="config"): device_types = sorted({d.device_type for d in db.query(Device).all() if d.device_type}) ha_live_pct = None if ha_client.enabled and device.ha_entity_id: - ha_live_pct = ha_client.get_state(device.ha_entity_id, timeout=4) + ha_live_pct = ha_client.get_state(device.ha_entity_id, timeout=1) if ha_live_pct is not None: changed = False for battery in device.batteries: