v5.4.5-dev.3
Pre-release
Pre-release
This dev release by default adheres to the Home Assistant entity registry settings regarding icons, localization, and decimals/fractions/precision with trailing zeros.
Unless, of course, you specify otherwise in the entity configuration!
This means, that if you have an almost empty entity config like:
- 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
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. Icon and color depend on the weather attribute and conditions.
Lights also...
What's Changed
💥 Breaking changes
In some cases, the following feature might behave differently than before, as it adheres to Home Assistant standards!
If you want custom handling, you are free to define your own styling, icons, and animations as before!
- feat: Revisit home assistant localization by @AmoebeLabs in #195
🐛 Bug fixes
- Fix font-size parser by @AmoebeLabs in #190
- Fix Area and Name classes by @AmoebeLabs in #193
- Fix: solve invalid renderstate checks on positions 0 by @AmoebeLabs in #191
-
🚀 New features
- feat: Revisit home assistant localization by @AmoebeLabs in #195
Other changes
Full Changelog: v5.4.5...v5.4.5-dev.3