Skip to content

Fix Axis websocket SSL cert regression with RTSP fallback#782

Merged
Kane610 merged 4 commits intomasterfrom
feat/websocket-ssl-fallback-ha-169953
May 7, 2026
Merged

Fix Axis websocket SSL cert regression with RTSP fallback#782
Kane610 merged 4 commits intomasterfrom
feat/websocket-ssl-fallback-ha-169953

Conversation

@Kane610
Copy link
Copy Markdown
Owner

@Kane610 Kane610 commented May 7, 2026

Reported here home-assistant/core#169953

Summary

Fixes a regression where Axis websocket event startup on HTTPS could fail with self-signed/private-CA certificates and then repeatedly retry websocket without degrading to RTSP event stream behavior.

What changed

  1. Reuse the configured device aiohttp session for websocket connects.
  2. Classify websocket connect failures, including certificate verification failures.
  3. Disable websocket for the current runtime on certificate verification failure (unless websocket force mode is enabled).
  4. Keep websocket force mode authoritative.
  5. Add targeted regression tests for websocket SSL/fallback behavior.
  6. Add HA Core rollout/documentation notes.

Files

  • axis/websocket.py
  • axis/stream_manager.py
  • tests/test_websocket.py
  • tests/test_stream_manager.py
  • .github/ha-core-notes-169953.md

Validation

  • uv run pytest tests/test_websocket.py tests/test_stream_manager.py
  • uv run ruff check axis tests
  • uv run ruff format --check axis tests

Notes for Home Assistant Core

See .github/ha-core-notes-169953.md for integration-facing behavior and follow-up guidance tied to issue #169953.

@Kane610 Kane610 merged commit 6ab5dc2 into master May 7, 2026
1 check passed
@Kane610 Kane610 deleted the feat/websocket-ssl-fallback-ha-169953 branch May 7, 2026 18:15
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