From c8cbb8ebb5bcf08335ff6ff536b66f6780d1f3fd Mon Sep 17 00:00:00 2001
From: Paulus Schoutsen
It looks like we have nothing to show you right now. It could be that we have not yet discovered all your devices but it is more likely that you have not configured Home Assistant yet. diff --git a/homeassistant/components/frontend/www_static/polymer/dialogs/more-info-dialog.html b/homeassistant/components/frontend/www_static/polymer/dialogs/more-info-dialog.html index 085a83c7a9b..4e8b2de4700 100644 --- a/homeassistant/components/frontend/www_static/polymer/dialogs/more-info-dialog.html +++ b/homeassistant/components/frontend/www_static/polymer/dialogs/more-info-dialog.html @@ -40,7 +40,7 @@ Polymer(Polymer.mixin({ }, ready: function() { - this.listenToStores(); + this.listenToStores(true); }, detached: function() { @@ -52,18 +52,9 @@ Polymer(Polymer.mixin({ }, stateStoreChanged: function() { - var newState; - - if (!this.entityId) { - newState = null; - } else { - newState = stateStore.get(this.entityId); - } - - console.log('state store changed'); + var newState = this.entityId ? stateStore.get(this.entityId) : null; if (newState !== this.stateObj) { - console.log("Setting new stateobj"); this.stateObj = newState; } }, @@ -85,12 +76,6 @@ Polymer(Polymer.mixin({ changeEntityId: function(entityId) { this.entityId = entityId; - if (!entityId) { - this.stateObj = null; - this.stateHistory = null; - return; - } - this.stateStoreChanged(); this.stateHistoryStoreChanged();