Skip to content

Commit cd2278b

Browse files
committed
fix(#60): type fix
1 parent c530f88 commit cd2278b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ha-sankey-chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class SankeyChart extends SubscribeMixin(LitElement) {
176176
const deviceIds = (collection.prefs?.device_consumption || [])
177177
.map(d => d.stat_consumption)
178178
.filter(id => {
179-
if (!this.hass.entities[id]) {
179+
if (!this.hass.states[id]) {
180180
console.warn('Ignoring missing entity ' + id);
181181
return false;
182182
}

0 commit comments

Comments
 (0)