Skip to content

0.7.27 — entity_id deprecation fix + CI/docs

Choose a tag to compare

@mosandlt mosandlt released this 28 Jun 15:11

Changes

Bug fix

  • event / switch — remove manual entity_id assignments (#296): SHCUniversalSwitchEvent, SHCLightControlButtonEvent, SHCScenarioEvent (event.py) and SHCUserDefinedStateSwitch (switch.py) no longer set self.entity_id directly. HA generates entity IDs from unique_id — the modern, deprecation-safe approach. Now-unused ENTITY_ID_FORMAT and slugify imports removed.
    • Existing installs are unaffected. HA persists entity IDs in the entity registry on first load; the stored value is reused on subsequent loads even when the integration no longer sets one explicitly. No automation updates needed.
    • New installs will receive entity IDs derived from the entity name (same as any other HA integration).

CI

  • Fix requirements_test.txt: homeassistant>=2026.6.4>=2026.2.0. HA ≥ 2026.3.0 requires Python ≥ 3.14.2 and was invisible to the Python 3.13 CI runner, causing both Tests and Quality workflows to fail on every push.

Docs

  • README restructured: HACS one-click install button (header + Quick start), logical section order (Highlights → Quick start → Install → Config → Reference → Troubleshooting → Architecture → What's new → Maintainers), Mermaid architecture diagrams, Table of Contents, Quick start guide.

Stats

  • 2915 tests · 99.28% coverage · Gold quality scale
  • boschshcpy: unchanged (still 0.3.20)