Skip to content

Commit

Permalink
Simplify optional vars
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 committed May 13, 2024
1 parent a9063da commit 254386b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/panels/lovelace/cards/energy/hui-energy-elec-flow-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,10 @@ export class HuiEnergyElecFlowCard
>
<ha-elec-sankey
.hass=${this.hass}
.gridInRoute=${this._gridInRoute ? this._gridInRoute : undefined}
.gridOutRoute=${this._gridOutRoute ? this._gridOutRoute : undefined}
.generationInRoutes=${this._generationInRoutes
? this._generationInRoutes
: {}}
.consumerRoutes=${this._consumerRoutes ? this._consumerRoutes : {}}
.gridInRoute=${this._gridInRoute || undefined}
.gridOutRoute=${this._gridOutRoute || undefined}
.generationInRoutes=${this._generationInRoutes || {}}
.consumerRoutes=${this._consumerRoutes || {}}
></ha-elec-sankey>
</div>
</ha-card>
Expand Down

0 comments on commit 254386b

Please sign in to comment.