REMINDER: If you are using HACS and Frontend extra_module_url make sure to update extra_module_url to match Dashboard resource and restart Home Assistant
New Features
- Add template errors to template debug output. Make debug output an object for clearer review in console. Note: Since 4.0.0. any template can include debug console output by including the comment
{# card_mod.debug #}in the template. - Apply card_mod to ha-assist-chip. This allows for direct styling of buttons in entities card header/footer as well as via theme variable
card-mod-assist-chip(-yaml). - Set debug via theme vars. See README-themes.md for more information.
Fixes
- Fix styling children not always applying when no main style (Issue #554)
- Fix cards with late rendering and apply
prependoption automatically when required - Fix card_mod style icon showing now edit card button is ha-button
- Fix theme styling not applying to elements where card-mod is applied when element is disconnected from DOM. This may happen sparadically. (Issue #563).
- Check that card-mod custom element is defined before applying card-mod. While this is not expected it is a good measure to rule out a delay in custom elements being defined given the scoped custom elements registry used by Home Assistant.
- (Beta Fix) Debug via theme vars was incorrectly overriding debug via config once theme applied to element.
- (Beta Fix) Update auto prepend to only prepend, and not add first then prepend, making sure only one connect to DOM takes place for card-mod elemenet.
Full Changelog: v4.1.0...v4.2.0-beta.5