Thanks for the heads up!
AI Automation Suggester just got a lot safer, more dashboard‑friendly, and fully CI‑compliant. 🎉
✨ Highlights
- Dashboard‑ready attributes
Eachsensor.ai_automation_suggestions_*now exposes:description– plain‑text explanation of the ideayaml_block– the YAML fence onlysuggestions– full, un‑split text (legacy)
- Rock‑solid provider code
Missing‑method crashes andNoneType.area_iderrors are gone.
🐛 Full Changelog
| Type | Item |
|---|---|
| Fix | Remove stray Markdown fences in const.py, eliminating SyntaxError on HA start‑up
|
| Fix | Null‑safe look‑ups for area_id, device_id, etc.
|
| Fix | Always register process_with_* handlers for every provider; prevents object has no attribute errors
|
| Enhancement | Split suggestion payload into description and yaml_block attributes
|
| Enhancement | Cleaner error logging: first line now shows provider & reason |
⚠️ Breaking Change
Dashboards that referenced
state_attr('sensor.ai_automation_suggestions_google', 'suggestions')
can stay as‑is (attribute still exists), but you probably want the cleaner:
state_attr('sensor.ai_automation_suggestions_google', 'description')
state_attr('sensor.ai_automation_suggestions_google', 'yaml_block')
⬆️ Upgrade Guide
Update via HACS or pull the latest release zip into custom_components/ai_automation_suggester/.
Restart Home Assistant.
Verify one clean “Setup complete” log line (no tracebacks).
Adjust dashboards to the new attributes (optional).
Thanks to everyone who reported issues, tested fixes 🙌