Skip to content

20260913r0

Choose a tag to compare

@raphael1688 raphael1688 released this 13 Sep 11:32
· 6 commits to main since this release

修正

  • remote.py entity_id 消毒:_slugify 原本只套在裝置名稱上,agt(hub ID)原樣塞入 entity_id。部分 hub 的 agt 含 -(base64-ish token),會產生 HA 2026.8 warn / 2027.2 reject 的 entity_id — 與 20260803r0 修的是同一類問題,該版漏掉了這個檔。現在整個 <name>_<agt>_<me> 都經過 _slugify。
  • 對 agt 本來就乾淨的使用者,輸出逐字元相同,entity_id 不會搬動。只有帶 - 的會變 _,registry 端由既有的 _migrate_entity_ids 處理。
  • 順帶消除 remote setup 的 in-place rename 與 _migrate_entity_ids 每次開機互相改回去的問題。

HA 2026.9 / 2026.9.1 相容性

本版起因於對 HA 2026.9.1 的影響檢查 — 結論:無需為 2026.9 做任何變更。逐項對照 2026.9 backward-incompatible 清單、2026.9.1 patch、以及 8/24 device registry follow-up deprecations,並對 2026.9.1 tag 原始碼驗證 via_device_id / EntityRegistry.entities / PERCENTAGE 均未受影響。

測試

34 tests passed(原 29 + 新 5)。CI 6 jobs 全綠。