diff --git a/state-switch.js b/state-switch.js index 8dc8bd5..42a4c18 100644 --- a/state-switch.js +++ b/state-switch.js @@ -38,7 +38,7 @@ class StateSwitch extends cardTools.litElement() { this.currentCard = this.cards[hass.user.name] || this.cards[this.config.default]; } else if(this.config.entity == 'browser') { - this.currentCard = this.cards[cardTools.deviceID] + this.currentCard = this.cards[cardTools.deviceID()] || ((this.config.default) ? this.cards[this.config.default] : this.idCard);