Make card error message available to cards loaded by card helpers. #26064
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change
Proposed change
With 2025.6 card error changed from being the underlying error to being generic 'Configuration error'. An update allowed for cards in edit/preview mode to see the underlying card error message. This change did not account for cards loaded by card helpers. This PR adds the underlying card error message so it is part of hui-error-card config that is created so can be used by custom elements, and if that custom element loads a card preview, the underlying card error message will be able to be seen.
Custom Elements to benefit from this PR will be Browser Mod (Popup Card Preview) and Auto Entities (will enable a fix to current issues with > 2025.6)
Type of change
Example configuration
No in the box Home Assistant test. Also I don't believe any custom elements correctly use preview, though Browser Mod has a PR to correctly show Popup card config in preview.
The YAML below is using
history-graph
with empty entities array to simulate an error.Tested with Browser Mod PR
Without this PR
With this PR
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: