Skip to content

Card and tiles also as a dashboard resource (0.7.1) - #12

Merged
Jumpmaster2 merged 1 commit into
mainfrom
ccr-726d54c7-oh93tq
Oct 23, 2026
Merged

Jumpmaster2 merged 1 commit into
mainfrom
ccr-726d54c7-oh93tq

Conversation

@Jumpmaster2

Copy link
Copy Markdown
Owner

Problem

In the companion app the tiles (custom:shutter-assistant-tile, custom:shutter-assistant-window-tile) sometimes showed a configuration error when a dashboard was opened. The app does not always load the extra modules of the start page (add_extra_js_url), so the card types were not defined yet. In the browser it works.

Fix

Same fix as in AI Heating Assistant 1.4.2:

  • panel.py: async_set_card_resource also keeps card.js (which imports tiles.js) as a dashboard resource when resources are managed in the UI (storage mode). A new version updates the entry instead of adding a second one.
  • __init__.py: the resource is removed together with the integration.
  • manifest.json: lovelace in after_dependencies, version 0.7.1.
  • README (de/en): note on the resource, status line set to 0.7.1.

Tests

  • New tests/ha/test_card_resource.py: add, update, remove, and no error without Lovelace.
  • ruff check clean, pytest: 207 passed.

Generated by Claude Code

The companion app did not always load the card from the extra modules of
the start page, then the tiles showed a configuration error. The
integration now also keeps card.js (which loads the tiles) as a dashboard
resource (storage mode), updates its version and removes it with the
integration. Same fix as in AI Heating Assistant 1.4.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GC3Jbmd6Vr4qXPkRDxcSs3
@Jumpmaster2
Jumpmaster2 merged commit afe87a9 into main Oct 23, 2026
6 checks passed
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