Validate Home Assistant custom integrations (custom_components/<domain>) before submitting to HACS. The extension mirrors HACS reviewer expectations, flags errors/warnings, and offers safe autofixes.
hacs.json and manifest.json validation (including key ordering autofix)
GitHub metadata and release checks (using optional PAT)
Branding verification against brands.home-assistant.io
CI workflow validation with an Add/Repair Workflow command (category: integration)
Preflight panel with sections + inline diagnostics
Commands
HACS: Run Integration Preflight Check
HACS: Autofix manifest.json ordering
HACS: Add/Repair CI Workflows
HACS: Check Home Assistant Brands status
Settings
hacsPreflight.githubToken: GitHub PAT for repository metadata/releases (optional).
hacsPreflight.brandsCheck: Enable remote brand asset lookup (defaults to true).
Usage
Open the integration repository in VS Code.
Run HACS: Run Integration Preflight Check (View → HACS Preflight).
Use provided buttons/commands to autofix manifest ordering or add the HACS workflow.
Resolve remaining warnings/errors before submitting to HACS.
CI Workflow Scaffolding
HACS: Add/Repair CI Workflows previews a diff and then writes .github/workflows/hacs.yml using the official hacs/action with category: integration. Changes are applied via Workspace Edits so they are undoable.