fix(ui): use the Alexa name or entity ID as card title when a device has no name #5
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/compact-card-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Fixes the titles of the compact device cards. The card repeated the Alexa name as a badge when it was the same as the device name, and entities without a device (for example groups) showed an empty bold title. The title is now the device name, otherwise the Alexa name, otherwise the entity ID. The entity ID stays below it as a small line unless it is the title itself.
Also adds a German changelog (
CHANGELOG.de.md) with all entries translated and links the two changelog files.Type of Change
Changes Made
titleRankinSortableTable: the first column with a value (lowest rank first) is the card title, the column with the highest rank is shown small below itcreateTableHeaders: device name 1, Alexa name 2, entity ID 3CompactCardandgetChiprewritten for this; the desktop table is unchangedCHANGELOG.de.md, linked fromCHANGELOG.mdRelated Issues
Closes #
Testing
Unit tests run with 100 % coverage. Checked manually with a device entry (
Abstellraum, Alexa name identical to the device name) and an entity without a device (light.gruppe_eingang): the first no longer shows the duplicate badge, the second shows its Alexa name as the title and the entity ID below it.Checklist
Screenshots (if applicable)
Additional Notes
Home Assistant shows only the English
README.md,DOCS.mdandCHANGELOG.mdin the add-on pages and cannot switch the language; the German files are linked and available in the repository. After the merge, tagv1.0.34onmain.