Skip to content

v0.1.18 — Fix chart rendering

Choose a tag to compare

@poolski poolski released this 26 May 18:18
d8351eb

Bug fix

Fixes the before/after chart not rendering after a scan (blank space where the chart should appear).

Root cause: ha-chart-base needs to be connected to the DOM and have hass set before it can initialise its internal Chart.js instance. The previous release set chart data before appending the element and omitted hass.

Fix: Append the element to DOM first, then pass hass, then set chart data.

Note

I used Claude Code for some of these changes