v5.4.6
Mainly a bug-fix release!
This release contains several bug fixes regarding name, area, and state display. Thanks to all the people who provided configuration examples and screenshots to eliminate those nasty (regression) bugs. I couldn't have found and fixed them without them!
This release also uses the Home Assistant entity settings. This means that in most cases it is not required anymore to specify decimals (precision setting in Home Assistant), units, and icons, as they are fetched from the Home Assistant entity registry.
So, an almost empty entity config like this one:
- type: custom:flex-horseshoe-card
entities:
- entity: sensor.livingroom_movement_battery # almost full
- entity: sensor.livingroom_illuminance_front_battery # almost empty
- entity: sensor.livingroom_whatever_battery # does exist, but has no status (undefined)
show:
horseshoe: false
layout:
icons:
- entity_index: 0
xpos: 25
ypos: 45
size: 2
rotate: 90 # Rotate 90 degrees CW
styles:
animation: pulse 1s ease-out infinite
- entity_index: 1
xpos: 50
ypos: 45
size: 2
- entity_index: 2
xpos: 75
ypos: 45
size: 2You get his for "free"...
- the icon itself according to the state
- the color according to the state
The same is true for the weather icons and lights, where the icon and icon color depend on the state.

What's Changed
💥 (Possible) Breaking changes
Depending on your locale settings, states might be displayed differently, as they are translated now.
In a future version, there might be a locale setting to override this new default behaviour.
- feat: Revisit home assistant localization by @AmoebeLabs in #195
- fix: Icon size setting (size:) was ignored. This might change your icon size... Now both icon and icon_size are processed.
🐛 Bug fixes
- Fix font-size parser by @AmoebeLabs in #190
- Fix: solve invalid renderstate checks on positions 0 by @AmoebeLabs in #191
- Fix Area and Name classes by @AmoebeLabs in #193
- fix: fix color stops not functioning as they did before normalization of color stops by @AmoebeLabs in #197
- Fix Lovelace reference so var() colors work by @AmoebeLabs in #199
- Fix minimum Fraction Digits by @AmoebeLabs in #200
🚀 New features
- feat: Revisit home assistant localization by @AmoebeLabs in #195
Other changes
Full Changelog: v5.4.5...v5.4.6