⚡ UI & Internal Updates
- Component Migration: Replaced the deprecated
ha-menuandmwc-icon-buttoncomponents with the newerha-dropdownandha-icon-buttoncomponents in the editor UI. - Theme Compatibility: Updated legacy Material Design CSS variables (e.g.,
--mdc-text-field-fill-color,--mdc-shape-small) to standard Home Assistant variables (e.g.,--ha-color-form-background,--ha-border-radius-sm). - Documentation: Updated the
linear-gradientconfiguration example in the README to demonstrateto leftdirections andrembased color stops.
🐛 Bug Fixes
- Visual Overflow Prevention: Implemented a true state sum calculation and an effective ceiling scale to prevent the gauge from visually overflowing when the combined device states exceed the main state. Sub-device widths are now proportionally scaled to fit strictly inside the rendered main container.
- Division by Zero Hazards: Added safety checks to prevent division by zero errors when the main state or maximum value evaluates to zero.
- Untracked Proportions: Updated the calculation for untracked energy to scale proportionally alongside the new visual overflow logic, ensuring it never drops below zero.
- Severity Editor Input: Fixed an issue in the severity editor by explicitly marking the
fromvalue in the number selector as not required.
🤝 Contributing
Thanks to everyone for your feedback. All contributions are welcome!
🍻 Support the Project
Thank you for all your support and for using the Energy Line Gauge card!
If you enjoy using this card and want to support its development, consider buying me a beer!
Your support helps keep the project alive and well-maintained. Cheers!
🔗 Full Changelog: v2.2.9...v2.3.0