Reduce HA live fetch timeout to 1s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user