Skip to content

Aqara Advanced Lighting v0.6.2

Choose a tag to compare

@absent42 absent42 released this 15 Jan 16:56
5f9f148

Bug Fixes

Fixed Preset Store Initialization Error

  • Resolved "Preset store not initialized" errors in panel and services
    • Preset store was being deleted when config entries were removed
    • Integration-level data (preset_store, favorites_store) now persists independently of config entries
    • Panel and services remain functional even without active config entries
    • Added prevention of re-initialization if stores already exist
    • Improved error logging for easier debugging

Fixed Service Unload Warnings During Reload

  • Eliminated "Unable to remove unknown service" warnings during config entry reload
    • Services are now correctly managed as integration-level resources
    • Services persist for the integration's lifetime instead of being unloaded with config entries
    • Fixed lifecycle mismatch where services were registered once but unloaded on each reload
    • All 13 integration services now remain available throughout HA session

Technical Improvements

  • Integration Resource Management
    • Clear separation between integration-level and config-entry-level resources
    • Integration-level (persistent): Services, panel, preset store, favorites store
    • Config-entry-level (per-entry): MQTT client, state manager, sequence managers
    • Improved lifecycle management and cleanup procedures
    • Better alignment with Home Assistant integration best practices