diff --git a/README.md b/README.md
index bc21f7e..14254d5 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ You could use [HACS](https://hacs.xyz/) or follow this [guide](https://www.danie
```yaml
resources:
- url: /local/pvpc-hourly-pricing-card.js?v=0.0.1
+ url: /local/pvpc-hourly-pricing-card.js?v=1.2.3
type: module
```
diff --git a/dist/pvpc-hourly-pricing-card.js b/dist/pvpc-hourly-pricing-card.js
index a802d3a..57a0c50 100644
--- a/dist/pvpc-hourly-pricing-card.js
+++ b/dist/pvpc-hourly-pricing-card.js
@@ -167,7 +167,10 @@ class PVPCHourlyPricingCard extends LitElement {
updated(param) {
this.setPVPCHourlyPricingObj();
let chart = this.shadowRoot.getElementById('Chart');
- if (chart) chart.data = this.ChartData;
+ if (chart) {
+ chart.data = this.ChartData;
+ chart.hass = this.hass;
+ }
}
render() {
@@ -189,9 +192,7 @@ class PVPCHourlyPricingCard extends LitElement {
}