Skip to content

Prefer local brand icons for installed integrations#929

Open
itsh-neumeier wants to merge 1 commit intohacs:mainfrom
itsh-neumeier:codex/local-brands-proxy-for-installed-integrations
Open

Prefer local brand icons for installed integrations#929
itsh-neumeier wants to merge 1 commit intohacs:mainfrom
itsh-neumeier:codex/local-brands-proxy-for-installed-integrations

Conversation

@itsh-neumeier
Copy link

Summary

  • prefer the local Home Assistant Brands Proxy icon for installed custom integrations
  • keep the existing CDN-based �randsUrl() path as a fallback when the local icon is unavailable
  • limit the change to installed integrations so non-installed repositories continue using the existing behavior

Why

Home Assistant 2026.3+ can serve brand assets for installed custom integrations via /api/brands/integration//icon.png, but the HACS repository list still renders icons via the CDN-based �randsUrl() helper. That means integrations with local brand assets can still show the placeholder icon in HACS even though Home Assistant itself displays the correct icon.

This change makes the HACS dashboard prefer the local brand icon for installed integrations and gracefully fall back to the existing CDN path if the local asset is not available.

Refs hacs/integration#5179

Testing

  • not run locally; this environment does not have Node/Yarn available
  • verified the affected render path manually in src/dashboards/hacs-dashboard.ts

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.

1 participant