mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix stateObj.attributes.entity_id null issue (#1572)
This commit is contained in:
parent
95ea220936
commit
8ae44e6f7f
@ -55,7 +55,7 @@ class MoreInfoGroup extends PolymerElement {
|
|||||||
|
|
||||||
computeStates(stateObj, hass) {
|
computeStates(stateObj, hass) {
|
||||||
var states = [];
|
var states = [];
|
||||||
var entIds = stateObj.attributes.entity_id;
|
var entIds = stateObj.attributes.entity_id || [];
|
||||||
|
|
||||||
for (var i = 0; i < entIds.length; i++) {
|
for (var i = 0; i < entIds.length; i++) {
|
||||||
var state = hass.states[entIds[i]];
|
var state = hass.states[entIds[i]];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user