Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 committed Oct 27, 2024
1 parent 4127fa3 commit c98edaa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/hui-energy-elec-flow-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ registerCustomCard({
@customElement("hui-energy-elec-flow-card")
export class HuiEnergyElecFlowCard
extends SubscribeMixin(LitElement)
implements LovelaceCard
{
implements LovelaceCard {
@property({ attribute: false }) public hass!: HomeAssistant;

@state() private _config?: EnergyElecFlowCardConfig;
Expand Down Expand Up @@ -74,12 +73,12 @@ export class HuiEnergyElecFlowCard
return html`
<ha-card>
${this._config.title
? html`<h1 class="card-header">${this._config.title}</h1>`
: ""}
? html`<h1 class="card-header">${this._config.title}</h1>`
: ""}
<div
class="content ${classMap({
"has-header": !!this._config.title,
})}"
"has-header": !!this._config.title,
})}"
>
<ha-elec-sankey
.hass=${this.hass}
Expand Down

0 comments on commit c98edaa

Please sign in to comment.