Reported issues fixed
📝 Changelog - Version 1.4.0 (HA 2025 Optimized)
🚀 Highlights
Home Assistant 2025 Ready: The codebase has been fully updated to meet the latest Home Assistant 2025 standards and best practices.
Native Performance: Removed dependencies on external CDNs (unpkg.com). The card now loads required libraries directly from the Home Assistant Core, improving loading speeds and ensuring full offline functionality.
✨ New Features
Full Localization (i18n): Added multi-language support. The card now automatically detects your Home Assistant language settings. Supported languages include English, German, French, Spanish, Italian, and Dutch.
Locale-Aware Number Formatting: Numbers are now formatted based on the user's locale (e.g., 12,5 kWh in Germany vs. 12.5 kWh in the US).
Smart Tooltips: Enhanced bar overlays that are now fully translated and display the "last updated" timestamp of the entity for better data tracking.
🛠 Bug Fixes
Z-Index & Overlay Fix: Resolved a critical CSS issue where the "Remaining Indicator" and tooltips would overlap Home Assistant menus, dialogs, or headers. Using isolation: isolate, all overlays are now strictly contained within the card's scope.
Graceful Error Handling: Replaced hard errors (throw Error) with a user-friendly error display. If the configuration is missing or invalid, the card shows a helpful message instead of crashing the entire dashboard with a "Red Box."
Visual Editor Stub Removal: Removed faulty references to a missing editor element. Home Assistant will now correctly default to the YAML editor without generating console errors.
⚡ Performance & Code Quality
Caching System: Implemented caching for weekdays and date formats to minimize CPU usage during rendering.
Optimized shouldUpdate: The card now performs a more efficient check on sensor data changes, preventing unnecessary re-renders and improving overall dashboard fluidity.
Modern CSS Engine: Migrated to Container Queries (cqi) to ensure the card looks perfect in the new "Sections" dashboard layouts (HA 2024.8+).