Skip to content

Fix SSL deprecation, test assertion, and missing mypy dep#56

Open
davidrecordon wants to merge 1 commit intolawtancool:masterfrom
davidrecordon:fix/code-review-issues
Open

Fix SSL deprecation, test assertion, and missing mypy dep#56
davidrecordon wants to merge 1 commit intolawtancool:masterfrom
davidrecordon:fix/code-review-issues

Conversation

@davidrecordon
Copy link
Contributor

Summary

  • Replace deprecated aiohttp.TCPConnector(verify_ssl=False) with ssl=False in director.py and websocket.py to eliminate DeprecationWarning on aiohttp 3.x (removed in 4.0)
  • Fix test_sio_connect_with_session to assert ssl_verify=True, matching the production code from ee45410
  • Add mypy to requirements-dev.txt — was stated as added in 25568bf but was missing from the file

Test plan

  • All 34 existing tests pass
  • Verify no DeprecationWarning from aiohttp in logs during normal operation

🤖 Generated with Claude Code

…ypy dev dep

- Replace deprecated aiohttp TCPConnector(verify_ssl=False) with ssl=False
  in director.py and websocket.py to silence DeprecationWarnings
- Fix test_sio_connect_with_session to assert ssl_verify=True, matching the
  production code changed in ee45410
- Add mypy to requirements-dev.txt (was stated as added but missing)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lawtancool
Copy link
Owner

@davidrecordon let me know when you're done testing the HA PR stuff so I can merge the fixes all at once and cut a new release

@davidrecordon
Copy link
Contributor Author

davidrecordon commented Feb 23, 2026

@lawtancool tested 2.0.2 and it's good to go! This PR came out of a quick review of the past few commits, nothing major.

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.

2 participants