Add configurable request timeout to all HTTP calls #8

Merged
mat merged 1 commit from feat/request-timeouts into main 2026-07-04 07:41:51 +00:00
Owner

P0 bug fix #5/5.

None of the HTTP calls passed a timeout, so a hung connection blocks the caller forever (bad for the Home Assistant integration). Adds ComwattClient(timeout=30) and passes timeout=self.timeout to all 10 request calls. Default 30 s, configurable per instance. Backward compatible (ComwattClient() still works). py_compile passes; all 10 calls verified to carry the timeout.

**P0 bug fix #5/5.** None of the HTTP calls passed a `timeout`, so a hung connection blocks the caller forever (bad for the Home Assistant integration). Adds `ComwattClient(timeout=30)` and passes `timeout=self.timeout` to all 10 request calls. Default 30 s, configurable per instance. Backward compatible (`ComwattClient()` still works). `py_compile` passes; all 10 calls verified to carry the timeout.
mat merged commit ad1eb4d0bf into main 2026-07-04 07:41:51 +00:00
mat deleted branch feat/request-timeouts 2026-07-04 07:41:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mat/python-comwatt-client!8
No description provided.