Fix stateObj.attributes.entity_id null issue (#1572)

This commit is contained in:
Jason Hu 2018-08-16 01:16:34 -07:00 committed by Paulus Schoutsen
parent 95ea220936
commit 8ae44e6f7f

View File

@ -55,7 +55,7 @@ class MoreInfoGroup extends PolymerElement {
computeStates(stateObj, hass) {
var states = [];
var entIds = stateObj.attributes.entity_id;
var entIds = stateObj.attributes.entity_id || [];
for (var i = 0; i < entIds.length; i++) {
var state = hass.states[entIds[i]];