2.0.0
This update unifies some of the card style to work better with the default lovelace layout.
Updates
- Converted to TypeScript.
- Code cleanup.
- Updated undefined entity warning to
ha-warning
element.
Fixes
- Added deepcopy function.
- Moved individual cards into a single
ha-card
element. - Removed default card padding.
- Set default border-radius to use theme variable.
Breaking Changes
severity
array no longer requires definition of first color.
The severity array was always a bit confusing since you had to define the start color with a value that didn't do anything. It will now fall back to the color
config value whenever it is above the highest value.
The order of your array entries now also does not matter anymore as they are automatically sorted by value.
color: Green
severity:
- value: 50
color: Yellow
- value: 25
color: Red
- Removed
*_style
config options.
Styles config options have been removed in favor of card-mod, which allows restyling of many more elements than this card should support.
style: |
bar-card-value {
font-size: 20px;
color: Red;
}
- Removed
padding
config option. - Removed
rounding
config option.