Skip to content

Use brandsUrl for dashboard brand icons and keep HACS fallback#927

Draft
usersaynoso wants to merge 2 commits intohacs:mainfrom
usersaynoso:codex/use-brandsurl-helper
Draft

Use brandsUrl for dashboard brand icons and keep HACS fallback#927
usersaynoso wants to merge 2 commits intohacs:mainfrom
usersaynoso:codex/use-brandsurl-helper

Conversation

@usersaynoso
Copy link

Summary

  • prefer Home Assistant's shared brandsUrl(...) helper for the primary dashboard brand icon URL
  • keep the dashboard image fallback to /api/hacs/icon/{repository_id} when the hosted brand asset is missing
  • avoid hardcoding the hosted brands.home-assistant.io URL pattern in HACS frontend code

Details

This keeps the dashboard rendering change in hacs/frontend, not in hacs/integration.

The dashboard now builds the primary hosted icon URL through Home Assistant's existing brandsUrl(...) helper and still falls back in the browser to the HACS endpoint when the hosted asset is missing.

That keeps the frontend aligned with Home Assistant's own brand URL utility while preserving the existing fallback behavior expected by the companion integration change.

Testing

  • npx -y node@18 ./node_modules/gulp-cli/bin/gulp.js build-hacs

@hacs-bot hacs-bot bot marked this pull request as draft March 18, 2026 14:57
@usersaynoso usersaynoso marked this pull request as ready for review March 19, 2026 18:13
@ludeeus ludeeus marked this pull request as draft March 19, 2026 18:53
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.

2 participants