feat: hassfest action for Home Assistant custom integrations #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/hassfest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
hassfest: Home Assistant's own validator for custom integrations (manifest, requirements, config flow, translations, services), the same checks ashome-assistant/actions/hassfeston GitHub, which never runs on Forgejo.How it works
Runs the official image
ghcr.io/home-assistant/hassfestand copies the workspace in withdocker cp. A job runs in a container that talks to the host's Docker socket, so a bind-mounted workspace path would not exist on the host and hassfest would silently validate an empty directory. The action fails when nocustom_components/*/manifest.jsonexists, so an empty validation can't pass either.It found real problems
Running it against my own repositories before building the action:
homeassistantis not a valid key inmanifest.json. The minimum Home Assistant version belongs inhacs.json. (The key was already in smart-forecast-solar's manifest, and I had added it to daikin-altherma's.)domain,name, then alphabetical.pkg@git+https://...@v0.2.0, notpkg @ git+....PATTERNS.mdis corrected where it said otherwise, and has a new "Home Assistant custom components" section.The check must be able to fail
The self-test (
test-hassfest.yml) runs the action on a valid fixture (must pass) and on an invalid one (must fail, enforced bycontinue-on-errorplus an outcome assertion). I verified locally that an invalid manifest makes hassfest exit 1.Notes
hacs/action) needs the GitHub API and cannot run on Forgejo. It is not replaced;hassfestplus a correcthacs.jsonis what can be checked here.latest, so the check follows Home Assistant. That is why the template also runs weekly.Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
🤖 Generated with Claude Code