mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 12:56:37 +00:00
Allow customUI on 'unavailable' state too. (#357)
This commit is contained in:
parent
19b903dfb7
commit
9fafdd4525
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user