fix: card_mod compatibility and localize empty state message#27
Merged
weedpump merged 1 commit intoweedpump:developfrom Jan 16, 2026
Merged
Conversation
- Reuse existing `ha-card` element during render to preserve card_mod styles - Ensure `ha-card` is created in `connectedCallback` for early style attachment - Add `no_events` translation key to all supported locales - Replace hardcoded "Keine Ereignisse..." string with localized value, closes weedpump#24
weedpump
added a commit
that referenced
this pull request
Jan 16, 2026
commit 663712a Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 16:19:29 2026 +0100 changelog for v1.6.0 commit 8da69e3 Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 16:07:59 2026 +0100 new option: use entity picture instead of icon if available closes #25 commit 663a42e Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 15:57:26 2026 +0100 added color-utils.js commit d580f8e Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 15:37:29 2026 +0100 options to change colors of timeline & dots commit 88fe3ee Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 15:27:23 2026 +0100 add transparency slider to color pickers commit 569a787 Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 15:00:46 2026 +0100 default entities & background commit cd7375d Author: Tobias Kneidl <[email protected]> Date: Fri Jan 16 14:43:26 2026 +0100 swedish translation commit af12888 Merge: 31b774d c5a2656 Author: Tobi <[email protected]> Date: Fri Jan 16 14:25:52 2026 +0100 Merge pull request #27 from kvanzuijlen/fix/card-mod-compatibility fix: card_mod compatibility and localize empty state message commit 31b774d Merge: bc791e3 e5f80ff Author: Tobi <[email protected]> Date: Fri Jan 16 14:25:26 2026 +0100 Merge pull request #26 from naitkris/patch-1 Create sv.json (Swedish translation) commit c5a2656 Author: kvanzuijlen <[email protected]> Date: Fri Jan 9 23:54:59 2026 +0100 Fix card_mod compatibility and localize empty state message - Reuse existing `ha-card` element during render to preserve card_mod styles - Ensure `ha-card` is created in `connectedCallback` for early style attachment - Add `no_events` translation key to all supported locales - Replace hardcoded "Keine Ereignisse..." string with localized value, closes #24 commit e5f80ff Author: Kristian Johansson <[email protected]> Date: Fri Jan 9 07:56:07 2026 +0400 Create sv.json (Swedish translation)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ha-cardelement during render to preserve card_mod stylesha-cardis created inconnectedCallbackfor early style attachmentno_eventstranslation key to all supported localesTested the changes locally by running
npm run build, copying the resulting JavaScript, and loading the newly built JavaScript instead of the HACS version. After that, I was able to apply a custom card_mod style to the card and make it work on page load (before it only worked after editing the card).I created some test messages and applied the following card_mod style:
Localized no events message:
