Skip to content

feat: migrate to aiohttp and resolve test thread leaks - #4

Merged
seanmccabe merged 21 commits into
mainfrom
feat/fix-technical-debt
Jan 11, 2026
Merged

seanmccabe merged 21 commits into
mainfrom
feat/fix-technical-debt

Conversation

@seanmccabe

Copy link
Copy Markdown
Owner
  • Replace blocking 'requests' library with 'aiohttp' for all API calls.
  • Remove 'requests' from manifest.json.
  • Refactor test_coordinator.py, test_init.py, and test_config_flow.py to use AsyncMock and correct patching, permanently resolving aiohttp client session thread leaks during testing.
  • Fix logic assertions in configuration flow and coordinator tests to match actual error handling.
  • Bump version to 1.2.0-beta.1.
  • Update CHANGELOG.md.

- Replace blocking 'requests' library with 'aiohttp' for all API calls.
- Remove 'requests' from manifest.json.
- Refactor test_coordinator.py, test_init.py, and test_config_flow.py to use AsyncMock and correct patching, permanently resolving aiohttp client session thread leaks during testing.
- Fix logic assertions in configuration flow and coordinator tests to match actual error handling.
- Bump version to 1.2.0-beta.1.
- Update CHANGELOG.md.
@seanmccabe seanmccabe self-assigned this Jan 10, 2026
- Migrate core networking from requests to aiohttp to fix blocking I/O.
- Add 'Last Sync' diagnostic sensor.
- Achieve 100% test coverage with new async test suite.
- Remove 'requests' dependency.
- Fix thread safety issues.
- Update documentation and badges.
- Added a force sync with BGG button
@seanmccabe
seanmccabe merged commit 3b3457c into main Jan 11, 2026
5 of 6 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