Skip to content

Backport HACS client foundation#28

Open
Wheemer wants to merge 4 commits into
theosnel:developfrom
Wheemer:backport-hacs-client-foundation
Open

Backport HACS client foundation#28
Wheemer wants to merge 4 commits into
theosnel:developfrom
Wheemer:backport-hacs-client-foundation

Conversation

@Wheemer

@Wheemer Wheemer commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR backports the current X-Sense client foundation from the HACS integration into python-xsense so the shared library can catch up with the integration behavior without carrying Home Assistant platform code.

Included

  • Async authentication/session helpers and APK-aligned request handling.
  • AWS shadow reads/writes, MQTT helper behavior, and normalized station/device/entity parsing.
  • Camera discovery, option detail, history, recording, and WebRTC helper coverage used by the HA integration.
  • Child-device identity alias handling for payloads that use devSerialNumber, serialNumber, sn, or related aliases.
  • XS01-M isAlarm child payload normalization to alarmStatus.
  • SBS50/SWS51 child-info shadow reads and compact field parsing.
  • Legacy self-test action compatibility for supported devices.
  • WebRTC client ICE candidates are now held until the camera SDP answer is received, matching the working HA camera signaling path.

Boundary

This intentionally does not move HA-specific platform/entity/config/frontend/blueprint code into the package. Those pieces stay in the Home Assistant integration layer.

Validation

  • Python 3.10: 126 passed
  • Python 3.11: 126 passed
  • Python 3.12: 126 passed
  • Python 3.13: 126 passed
  • Python 3.14/main venv: 126 passed
  • python -m build passed
  • twine check dist\python_xsense-0.1.0* passed
  • Fresh wheel install/import smoke test passed
  • pip check passed

@Wheemer Wheemer marked this pull request as ready for review June 28, 2026 21:11
@Wheemer Wheemer marked this pull request as draft June 28, 2026 21:16
@Wheemer Wheemer marked this pull request as ready for review June 28, 2026 21:23
@Wheemer Wheemer changed the title [codex] Backport async X-Sense client foundation Backport async X-Sense client foundation Jun 29, 2026
@Wheemer Wheemer force-pushed the backport-hacs-client-foundation branch 3 times, most recently from bbc1a78 to 41c5686 Compare July 7, 2026 09:39
@Wheemer Wheemer changed the title Backport async X-Sense client foundation Backport HACS client foundation Jul 8, 2026
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