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.
- Update patch check and warning to include version which has done patching as well as checking card_mod version. Also include new Home Assistant notification per user/browser combination where duplicate patching exists. See updated Performance improvements section of README.
- Provide for custom action to clear Home Assistant Frontend application cache. See Clearing Home Assistant Frontend application cache.
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.
Full Changelog: v4.1.0...v4.2.0-beta.6