Energy Horizon 1.3.1
- Fixed: Chart no longer displayed when a color-picker theme preset was selected (1.3.0 regression): the card editor's color picker (HA
ha-color-picker) emits Home Assistant theme-color token names as its presets (primary,light-blue,accent, …), which the card passed to the canvas verbatim; with the 1.3.0 default gradient fill on, the renderer rejected them (SyntaxError: Failed to execute 'addColorStop'repeated in the HA log) and the whole chart rendered blank. The presets are now resolved to the theme's palette colors (the--<name>-colorCSS variables) and render in exactly the color the picker swatch shows, following the active HA theme. Any color that cannot be parsed as a CSS color (typos, unknown names, a broken theme mapping a color variable to a name) falls back to the card's brand default (#119894) instead of crashing the paint. Manually entered values — hex (#aabbcc),rgb()/rgba(),var(--…), and theha-primary/ha-accentaliases — behave exactly as before. See #78.
Full Changelog: 1.3.0...1.3.1