Backport async X-Sense client foundation#28
Open
Wheemer wants to merge 4 commits into
Open
Conversation
This was referenced Jun 29, 2026
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.
Summary
Backport the reusable X-Sense client foundation from the current Home Assistant custom integration into
python-xsenseso this package can again act as the shared async client for X-Sense cloud, AWS IoT shadow, MQTT, ADDX camera, device, and action behavior.This keeps Home Assistant platform code out of the library. The package now exposes clean async Python client/model/parser helpers; the HA integration can still decide separately how and whether to consume the library later.
What changed
AsyncXSenseand removing the old syncXSenseclient./appAPI behavior, AWS IoT shadow read/write helpers, entity/device/station/house mapping, and model normalization.isOpenfor door sensors, including SBS10 child shadow payloads.openRemind, battery, RF, online, alarm, motion, armed, and alarm-mode surfaces.Supersedes older PRs
This PR supersedes the older overlapping PRs #22, #23, #24, and #25 by carrying their station action/data payload, device mapping/normalization, APK command, and MQTT live-update work forward in one async-only client branch with tests.
Upstream issue coverage
XS01-WXaction regression test.isOpen.Deliberate boundary
This does not move Home Assistant entity descriptions, icons, device classes, config flows, registry cleanup, blueprints, translations, diagnostics, or platform setup into the library. It also does not reintroduce
python-xsenseas a dependency in the HACS integration.Validation
pytest -q->110 passedpython -m compileall -q asynctest.py xsense testsgit diff --checkpython setup.py check --metadata --strictpython -m build --sdist --wheelpip check, and import smoke for everyxsense.*moduleaiohttp,boto3,botocore,pycognito,paho-mqtt, andpytest