Skip to content

docs: document all registered built-in domains (#90)#97

Merged
Faerkeren merged 1 commit into
mainfrom
docs/issue-90-document-all-domains
May 27, 2026
Merged

docs: document all registered built-in domains (#90)#97
Faerkeren merged 1 commit into
mainfrom
docs/issue-90-document-all-domains

Conversation

@Faerkeren
Copy link
Copy Markdown
Contributor

Closes #90.

Issue validity

Valid and actionable. Verified by inspecting src/haclient/domains/__init__.py: the package registers 16 built-in domains, but the README, docs/index.md, and the MkDocs nav listed only 9. Seven domains were undiscoverable from the docs: air_quality, event, fan, humidifier, lock, vacuum, valve.

Fix

  • Added docs/reference/domains/{air_quality,event,fan,humidifier,lock,vacuum,valve}.md reference pages (mkdocstrings auto-pages, matching the existing style).
  • Extended the MkDocs nav in mkdocs.yml to include all 16 built-in domains, alphabetised for stability.
  • Updated the feature lists in README.md and docs/index.md to enumerate all built-in domain accessors.
  • Added tests/test_docs_completeness.py — two regression tests that fail whenever a registered domain lacks either a Markdown reference page or a nav entry. This prevents the same drift from recurring.

No source-code changes; documentation and a guard test only.

Checks run

  • ruff check src tests — passed
  • ruff format --check src tests — passed
  • mypy src — passed (strict mode, 38 source files, no issues)
  • pytest tests/ --cov=haclient --cov-report=term-missing --cov-fail-under=95 — 328 passed, 97.18% coverage

Add reference pages and MkDocs nav entries for the seven built-in
domains that were registered but undocumented: air_quality, event, fan,
humidifier, lock, vacuum, valve.

Update the README and docs/index.md feature lists to enumerate all
sixteen built-in domain accessors.

Add tests/test_docs_completeness.py to prevent future drift between
DomainRegistry and the documentation surface.
@Faerkeren Faerkeren merged commit 40a987f into main May 27, 2026
12 checks passed
@Faerkeren Faerkeren deleted the docs/issue-90-document-all-domains branch May 27, 2026 14:03
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.

Document all registered built-in domains

1 participant