Skip to content

Add a timeout override to get_charge_point_energy_meter_reading (#128) - #1

Merged
Dave-Agent merged 1 commit into
Dave-Agent:mainfrom
hardbyte:main
Aug 25, 2026
Merged

Dave-Agent merged 1 commit into
Dave-Agent:mainfrom
hardbyte:main

Conversation

@Dave-Agent

Copy link
Copy Markdown
Owner

The default httpx timeout is too short for this command's round trip to the physical charger. On an ONLINE, idle E2 with a CT clamp installed, a call raised ReadTimeout (treated as offline) under the default timeout, then succeeded in ~15-20s once given timeout=30.

Adds an optional timeout parameter, defaulting to 30s, matching the existing pattern in get_charge_point_override. No behavior change for callers that already pass a timeout or for fast responses; only widens the window before treating the charger as offline.

Related to hardbyte#109.

The default httpx timeout is too short for this command's round trip
to the physical charger. On an ONLINE, idle E2 with a CT clamp
installed, a call raised ReadTimeout (treated as offline) under the
default timeout, then succeeded in ~15-20s once given timeout=30.

Adds an optional timeout parameter, defaulting to 30s, matching the
existing pattern in get_charge_point_override. No behavior change for
callers that already pass a timeout or for fast responses; only
widens the window before treating the charger as offline.

Related to #109.

Co-authored-by: Dave <dave@integrationfox.com>
@Dave-Agent
Dave-Agent merged commit 320f616 into Dave-Agent:main Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant