Skip to content

X-Sense Home Security v0.1.2

Choose a tag to compare

@javaDevJT javaDevJT released this 28 Jun 21:59

X-Sense Home Security v0.1.2

Runtime compatibility fix release.

Repository: https://github.com/javaDevJT/ha-xsense-home

What Changed

  • Fix MQTT subscription setup on current Home Assistant versions.
  • Add stable per-topic subscription_id generation for the X-Sense MQTT bridge.
  • Add regression coverage so direct Subscription(...) construction cannot omit subscription_id.
  • Bump the custom integration manifest version to 0.1.2.

Root Cause

Home Assistant's MQTT Subscription dataclass now requires subscription_id. The imported X-Sense bridge was still using the older six-argument constructor, causing setup refresh to fail before the X-Sense data coordinator could subscribe to MQTT events.

Validation

  • python3 -m unittest discover -s tests -v
  • python3 -m compileall -q custom_components/xsense tests
  • git diff --check

Known Gaps

  • Needs confirmation in a running Home Assistant instance with X-Sense devices.