This commit is contained in:
Thomas Lovén 2019-02-16 00:06:33 +01:00
parent c806ca0b7d
commit f06d3dba74

View File

@ -38,7 +38,7 @@ class StateSwitch extends cardTools.litElement() {
this.currentCard = this.cards[hass.user.name] this.currentCard = this.cards[hass.user.name]
|| this.cards[this.config.default]; || this.cards[this.config.default];
} else if(this.config.entity == 'browser') { } else if(this.config.entity == 'browser') {
this.currentCard = this.cards[cardTools.deviceID] this.currentCard = this.cards[cardTools.deviceID()]
|| ((this.config.default) || ((this.config.default)
? this.cards[this.config.default] ? this.cards[this.config.default]
: this.idCard); : this.idCard);