1.0.0
This is a rather big release, the entire codebase has been converted to Typescript which should help considerably with avoiding bugs and generally with maintaining the project. I've tried to minimise any breaking changes the plugin should work the same as before or better aside from the breaking changes listed below.
🚨 Breaking Changes
- Rework
state_icons
to use templated state value (fixes #51) (28d6f24)state_icons
was incorrectly using the entities state instead of the configured state template,state_styles
andstate_text
were using the correct value.- If you were not using state templating then nothing will change.
- Center button content by default (9087337)
- Buttons now have
justify-content: center
by default, this might affect your buttons that expected the content to be aligned toflex-start
. I had quite a few people asking how to center the text/content and looking at my own buttons I usedcenter
a lot more thanflex-start
so I decided it was better to change the default. To fix any affected buttons update your config to include the following. (closes #29)styles: button: justify-content: flex-start
- Buttons now have
- Rename
style
option tostyles
(f671d9f)- This isn't technically a breaking change as
style
will still work, butstyles
is the preferred keyword now to improve consistency for button-card users.
- This isn't technically a breaking change as
- Deprecate
align_icon
andalign_icons
(2214395)- They still work but will be removed in a future version, use the
layout
option instead.
- They still work but will be removed in a future version, use the
⚡ New Features
- Add support for animations (closes #59)
- Add built-in animations for blink and rotating (d0e36aa) (closes #59)
- Add global styles and
extra_styles
support (2ce78d1) (closes #58, #59, #31) - Add support for service call targets by @ristomatti in #68 (5ab6123)
- Show more-info by default for tap action of non-toggleable entities (fd766c9)
- Show toast messages for invalid actions (429465a)
- Add
hide_state
andhide_badge
options for extended rows (33a7261)
Changes
- Add CI and release workflows (e7d12a2)
- Refactor style handling and switch to styleMap (a49aeee)
- The Great Typescript Migration (9884f08)
- This fixes a handful of issues in the code and I've also started using
custom-card-helpers
which has one of the main benefits of better icon extraction for states and more domains (fixes #45).
- This fixes a handful of issues in the code and I've also started using
Full Changelog: 0.6.2...1.0.0