github ITSpecialist111/ai_automation_suggester 1.3.1
v1.3.1

latest releases: 1.4.2, 1.4.1, 1.4.0...
7 months ago

🚀 AI Automation Suggester — v1.3.1

✨ What’s new

Category | Detail -- | -- YAML/Description ready-made attributes | The heavy lifting (regex extraction) has moved into the coordinator. Every AI reply is now automatically split into: • description – plain-text explanation • yaml_block – the raw automation code (if present)You can use them directly: state_attr('sensor.ai_automation_suggestions_google', 'yaml_block'). Version alignment | All internal version strings & manifest.json bumped to 1.3.1 so HACS won’t complain about mismatches. House-cleaning | • Removed obsolete regex helper code from the sensor.• Pruned unused imports & duplicate comments.• Normalised blank lines per PEP 8.Net result: the sensor file shrank from 199 → 184 lines while keeping identical behaviour.

🛠️ Fixes

  • Sensors no longer throw “yaml_block attribute missing” — it’s always present (empty string if the AI didn’t return code).

  • Coordinator safely handles providers that return non-Markdown responses.

  • Minor logging tweaks for clearer traceback locations.

🧑‍💻 Dashboard heads-up

  • Old cards that did manual regex extraction can be simplified:

    yaml
    CopyEdit
    {{ state_attr('sensor.ai_automation_suggestions_google', 'yaml_block') }}
  • Existing cards that only referenced suggestions continue to work — no breaking change.

⏫ Upgrade guide

  1. Update via HACSv1.3.1.

  2. Reload the integration or restart Home Assistant.

  3. (Optional) Update your dashboards to use the new attributes.

🙏 Thanks

Huge shout-out to everyone who reported the attribute/regex issues and tested the dev builds. Your feedback keeps this project humming!

Don't miss a new ai_automation_suggester release

NewReleases is sending notifications on new releases.