Skip to content

Commit

Permalink
Add collectionKey to component
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommatheussen committed Feb 19, 2024
1 parent b8f8cd1 commit 2ac4628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/energy-period-selector-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class EnergyPeriodSelectorPlus extends LitElement implements LovelaceCard
logError(localize('common.invalid_configuration') || 'Invalid configuration');
return nothing;
}
const energyPeriodSelectorBase = html` <energy-period-selector-base .hass=${this.hass} ._config=${this._config}></energy-period-selector-base> `;
const energyPeriodSelectorBase = html` <energy-period-selector-base .hass=${this.hass} ._config=${this._config} .collectionKey=${this._config?.collection_key}></energy-period-selector-base> `;
return this._config?.card_background
? html` <ha-card .header=${this._config?.title}> ${energyPeriodSelectorBase}</ha-card> `
: html` ${energyPeriodSelectorBase} `;
Expand Down

0 comments on commit 2ac4628

Please sign in to comment.