diff --git a/src/state-summary/state-card-content.html b/src/state-summary/state-card-content.html index 8c011bfcff..dd3c86e26c 100644 --- a/src/state-summary/state-card-content.html +++ b/src/state-summary/state-card-content.html @@ -48,7 +48,7 @@ Polymer({ inputChanged: function (hass, inDialog, stateObj) { var stateCardType; if (!stateObj || !hass) return; - if (stateObj.state !== 'unavailable' && 'custom_ui_state_card' in stateObj.attributes) { + if (stateObj.attributes && 'custom_ui_state_card' in stateObj.attributes) { stateCardType = stateObj.attributes.custom_ui_state_card; this._ensureCustomUILoaded(stateCardType); } else {