v1.07
Fixes for Home Assistant 2026.2+ Compatibility
- Lovelace Dashboard API Migration (Issue #38)
- Fixed deprecated dictionary-style access to Lovelace dashboard data
- Changed from lovelace_data['dashboards'] to lovelace_data.dashboards (property access)
- Updated both get_dashboards() and get_dashboard_config() methods
- Added backward compatibility checks with hasattr() guards
- Recorder History API Update
- Migrated from deprecated homeassistant.components.history module
- Now uses homeassistant.components.recorder.history.get_significant_states
- Ensures history queries continue working in future HA versions
- Code Quality Improvements
- Added type narrowing for mypy compatibility
- Removed unused imports and dead code (MockConnection class, unused variables)
- Applied black formatting
Files Modified
- custom_components/ai_agent_ha/agent.py
- custom_components/ai_agent_ha/manifest.json