Skip to content

docs: correct request_timeout default in README (#93)#102

Merged
Faerkeren merged 1 commit into
mainfrom
fix/93-readme-request-timeout-default
May 27, 2026
Merged

docs: correct request_timeout default in README (#93)#102
Faerkeren merged 1 commit into
mainfrom
fix/93-readme-request-timeout-default

Conversation

@Faerkeren
Copy link
Copy Markdown
Contributor

Closes #93

Issue validity assessment

Valid and actionable. Verified the documented default in README.md (10) does not match the actual default in code (30.0) across all public construction paths:

  • ConnectionConfig.request_timeout (src/haclient/config.py:73)
  • ConnectionConfig.from_url() (src/haclient/config.py:86)
  • HAClient.from_url() (src/haclient/api.py:150)
  • SyncHAClient.from_url() (src/haclient/sync.py:208)

Other docs (docs/guides/lifecycle.md, docs/guides/sync-wrapper.md) already reflect the correct value; only the README was wrong.

Fix

One-line change in README.md: 10 -> 30.

The issue's optional suggestion of adding a config summary to docs/index.md was deferred — it is a docs-shape change beyond the scope of the bug, and the existing per-guide docs already document timeout behavior consistently with the code.

Checks run

  • ruff check src tests — passed
  • ruff format --check src tests — passed (60 files)
  • mypy src — passed (38 files, strict)
  • pytest tests/ --cov=haclient --cov-fail-under=95 — 329 passed, 97.19% coverage

The README documented `request_timeout` default as 10s, but the actual
default across all public construction paths (ConnectionConfig,
ConnectionConfig.from_url, HAClient.from_url, SyncHAClient.from_url) is
30s. Update the README to match the code.
@Faerkeren Faerkeren merged commit 69b2e83 into main May 27, 2026
12 checks passed
@Faerkeren Faerkeren deleted the fix/93-readme-request-timeout-default branch May 27, 2026 20:16
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.

Correct the documented request timeout default

1 participant