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_measurementkey (HA 2024+), and the guard condition is tightened tonot 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 withasyncio.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_clientsessionmanages the session lifecycle, so HA no longer warns about the integration closing a managed session on full restart. (#10) unit_classdeprecation resolved:async_update_statistics_metadatanow passesnew_unit_class=None(universally valid), eliminating the deprecation warning scheduled to break in HA 2026.11. (#9)max=0override fixed: A falsy-check bug innumber.pycaused a validmaxvalue of0on analog IO outputs to be silently replaced with100.0. Fixed by checkingis not Noneinstead. (#9)
⚠️ Requirements & Notes
- Full HA restart recommended after updating (coordinator behaviour change for extension offline handling; new translation keys for the Repair notification).