Repository navigation
Ha integration readiness - #6
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepare connbox 0.1.1 for the Home Assistant integration.
Changes
aiohttpas a runtime dependency (it was misplaced under[project.packages], so PyPI showed none)Cbox(session, host)uses an externalClientSessionand never closes it;Cbox.connected_to(host)still owns its sessionCboxError/CboxConnectionError/CboxCommandError, request timeout (10s), lenient JSON content typeUNKNOWNinstead of failing; raw code kept inrawStatus, newis_alarmValueError(fixes raising astrfor power)aiohttp>=3.13.3to stay installable on Home Assistant 2026.3+🤖 Generated with Claude Code