Skip to content

Add Home Assistant 2026.11+ marketplace integration check - #67

Merged
frenck merged 3 commits into
mainfrom
claude/pensive-bohr-ase5rb
Oct 17, 2026
Merged

frenck merged 3 commits into
mainfrom
claude/pensive-bohr-ase5rb

Conversation

@ludeeus

@ludeeus ludeeus commented Oct 16, 2026

Copy link
Copy Markdown
Member

Summary

This PR adds validation to prevent HACS installation on Home Assistant 2026.11 and newer versions, where HACS has been replaced by the native Marketplace integration. The script now detects incompatible versions and provides users with appropriate documentation links based on their Home Assistant version type (stable, beta, or development).

Key Changes

  • Version Detection Logic: Added checks in the get script to detect Home Assistant versions 2026.11 and newer
  • User-Friendly Error Messages: When an incompatible version is detected, the script displays an error message with a link to the appropriate marketplace documentation:
  • Test Coverage: Added comprehensive test cases in the GitHub Actions workflow to validate the version checking logic with various version formats (stable, beta, dev)
  • New Marketplace Validation Job: Added a dedicated GitHub Actions job to validate that the marketplace documentation URLs are correctly displayed for incompatible versions

Implementation Details

  • Version comparison uses year and month fields from the semantic version string
  • The check handles pre-release versions (beta and dev) appropriately
  • Early exit prevents any HACS files from being downloaded on incompatible versions
  • Test matrix includes edge cases like 2026.10.5 (should allow), 2026.11.0 (should block), and various pre-release formats

https://claude.ai/code/session_01EM6kiLprQ7KKu5SHy7fxmZ

Home Assistant 2026.11 replaces HACS with the native Marketplace
integration. The script now stops before downloading anything and points
to the Marketplace documentation for the matching release channel
(next for dev, rc for beta, www for stable).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EM6kiLprQ7KKu5SHy7fxmZ
@ludeeus
ludeeus requested a balanced review from Copilot October 16, 2026 15:43
Comment thread .github/workflows/actions.yml Fixed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The guard and CI checks match the stated requirements, with no unresolved issues identified.

0 open findings

What changed in this PR

Adds an installer guard that blocks HACS installation on Home Assistant 2026.11 and newer, directing users to Marketplace documentation.

Changes:

  • Checks compatibility before downloading HACS files.
  • Selects documentation links for stable, beta, and development releases.
  • Adds CI checks for version boundaries, messages, and early exit behavior.
File Description
get Adds the compatibility guard and release-specific documentation links.
.github/​workflows/​actions.yml Updates the installation fixture and adds compatibility checks.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@frenck

frenck commented Oct 17, 2026

Copy link
Copy Markdown
Member

@ludeeus The "Get HACS" add-on in hacs/addons probably needs the same guard. Otherwise people on 2026.11 can still install HACS through the add-on, and the loader then blocks it right away.

../Frenck

                       

Blogging my personal ramblings at frenck.dev

@ludeeus

ludeeus commented Oct 17, 2026 •

Copy link
Copy Markdown
Member Author

The App is using this script, so only this place needs the adjustment 👍

@frenck

frenck commented Oct 17, 2026

Copy link
Copy Markdown
Member

ok we can already publish this, right? As in.. it works by the version? :)

../Frenck

                       

Blogging my personal ramblings at frenck.dev

@ludeeus

ludeeus commented Oct 17, 2026

Copy link
Copy Markdown
Member Author

Yes, as soon as #68 is merged 👍

@frenck

frenck commented Oct 17, 2026

Copy link
Copy Markdown
Member

merged

@ludeeus
ludeeus marked this pull request as ready for review October 17, 2026 09:19
@frenck
frenck merged commit 816daf8 into main Oct 17, 2026
21 checks passed
@frenck
frenck deleted the claude/pensive-bohr-ase5rb branch October 17, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants