Skip to content

v1.07

Choose a tag to compare

@sbenodiz sbenodiz released this 20 Dec 21:27

Fixes for Home Assistant 2026.2+ Compatibility

  1. 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
  1. 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
  1. 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