Skip to content

Commit

Permalink
fix(#60): type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed Jan 18, 2023
1 parent c530f88 commit cd2278b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ha-sankey-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class SankeyChart extends SubscribeMixin(LitElement) {
const deviceIds = (collection.prefs?.device_consumption || [])
.map(d => d.stat_consumption)
.filter(id => {
if (!this.hass.entities[id]) {
if (!this.hass.states[id]) {
console.warn('Ignoring missing entity ' + id);
return false;
}
Expand Down

0 comments on commit cd2278b

Please sign in to comment.