From f06d3dba749e78ab312748a271e9deda0eeb3635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Sat, 16 Feb 2019 00:06:33 +0100 Subject: [PATCH] bugfix --- state-switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);