Skip to content

Ha integration readiness - #6

Merged
sdaclin merged 3 commits into
mainfrom
ha-integration-readiness
Oct 24, 2026
Merged

sdaclin merged 3 commits into
mainfrom
ha-integration-readiness

Conversation

@sdaclin

@sdaclin sdaclin commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Prepare connbox 0.1.1 for the Home Assistant integration.

Changes

  • Declare aiohttp as a runtime dependency (it was misplaced under [project.packages], so PyPI showed none)
  • Cbox(session, host) uses an external ClientSession and never closes it; Cbox.connected_to(host) still owns its session
  • CboxError / CboxConnectionError / CboxCommandError, request timeout (10s), lenient JSON content type
  • Unknown stove / fan codes map to UNKNOWN instead of failing; raw code kept in rawStatus, new is_alarm
  • Invalid setpoints raise ValueError (fixes raising a str for power)
  • Python 3.14 (as Home Assistant), latest dev dependencies, actions and ruff rules; aiohttp>=3.13.3 to stay installable on Home Assistant 2026.3+
  • Fix README example, simulator shared state, project urls; pin uv with asdf

🤖 Generated with Claude Code

- Declare aiohttp as a runtime dependency (it was misplaced under [project.packages])
- Accept an external ClientSession with a host and never close it; connected_to() still owns its session
- Add CboxError / CboxConnectionError / CboxCommandError, request timeout, lenient JSON content type
- Map unknown stove / fan codes to UNKNOWN instead of failing, keep rawStatus and add is_alarm
- Raise ValueError on invalid setpoints (fixes raising a str for power)
- Fix README example, simulator shared state, project urls; bump to 0.1.1
- Python 3.14 (required by Home Assistant since 2026.3)
- aiohttp floor set to 3.13.3 to stay installable on Home Assistant 2026.3+
- Latest dev tools (pytest 9.1, pytest-asyncio 1.4, coverage 7.17, ruff 0.17), uv_build 0.13
- Latest GitHub actions versions
- Apply new ruff rules
@sdaclin
sdaclin merged commit 25e5ae8 into main Oct 24, 2026
4 checks passed
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