Skip to content

Comexio v0.8.1

Latest

Choose a tag to compare

@kayl-codes kayl-codes released this 19 Jun 01:11
· 39 commits to master since this release
8518483

downloads

This release fixes several stability issues in the statistics unit migration, suppresses a spurious aiohttp session warning on HA restart, and improves the extension offline detection with a proper HA Repair notification.

🚀 New Features & Enhancements

  • Extension Offline Repair Issue: When an extension module goes offline during runtime, a HA Repair notification is now created listing the affected module(s) — it auto-resolves once all modules are back online. Modules that are already offline at startup are logged at INFO level only, so intentionally decommissioned hardware no longer generates a spurious alert. (#11)

✨ Improvements & Fixes

  • Statistics unit migration reliability: Detection now uses the correct statistics_unit_of_measurement key (HA 2024+), and the guard condition is tightened to not stored_unit — the migration no longer re-runs on every restart once it has already completed. (#9)
  • Bootstrap deadlock eliminated: async_block_till_done() replaced with asyncio.sleep() in the background statistics-fix task — HA startup no longer stalls for up to 5 minutes when the recorder queue is active. (#9)
  • Offline extension orphan guard: Entity IDs of offline extension IOs are snapshotted before the cleanup loop and excluded from orphaned-statistics detection, preventing false Repair issues from reappearing on every restart. (#9)
  • aiohttp session warning suppressed: ComexioAPI.close() is now a no-op — async_create_clientsession manages the session lifecycle, so HA no longer warns about the integration closing a managed session on full restart. (#10)
  • unit_class deprecation resolved: async_update_statistics_metadata now passes new_unit_class=None (universally valid), eliminating the deprecation warning scheduled to break in HA 2026.11. (#9)
  • max=0 override fixed: A falsy-check bug in number.py caused a valid max value of 0 on analog IO outputs to be silently replaced with 100.0. Fixed by checking is not None instead. (#9)

⚠️ Requirements & Notes

  • Full HA restart recommended after updating (coordinator behaviour change for extension offline handling; new translation keys for the Repair notification).