mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
More info dialog plays nice again with History
This commit is contained in:
parent
4047bf0775
commit
c8cbb8ebb5
@ -1,2 +1,2 @@
|
|||||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||||
VERSION = "3822abfa5abb0a8d60ddf434a2f341d5"
|
VERSION = "f580c3369e5a44f71d3304dc0939ddd1"
|
||||||
|
File diff suppressed because one or more lines are too long
@ -40,7 +40,7 @@ Polymer(Polymer.mixin({
|
|||||||
},
|
},
|
||||||
|
|
||||||
ready: function() {
|
ready: function() {
|
||||||
this.listenToStores();
|
this.listenToStores(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
detached: function() {
|
detached: function() {
|
||||||
@ -52,18 +52,9 @@ Polymer(Polymer.mixin({
|
|||||||
},
|
},
|
||||||
|
|
||||||
stateStoreChanged: function() {
|
stateStoreChanged: function() {
|
||||||
var newState;
|
var newState = this.entityId ? stateStore.get(this.entityId) : null;
|
||||||
|
|
||||||
if (!this.entityId) {
|
|
||||||
newState = null;
|
|
||||||
} else {
|
|
||||||
newState = stateStore.get(this.entityId);
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log('state store changed');
|
|
||||||
|
|
||||||
if (newState !== this.stateObj) {
|
if (newState !== this.stateObj) {
|
||||||
console.log("Setting new stateobj");
|
|
||||||
this.stateObj = newState;
|
this.stateObj = newState;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -85,12 +76,6 @@ Polymer(Polymer.mixin({
|
|||||||
changeEntityId: function(entityId) {
|
changeEntityId: function(entityId) {
|
||||||
this.entityId = entityId;
|
this.entityId = entityId;
|
||||||
|
|
||||||
if (!entityId) {
|
|
||||||
this.stateObj = null;
|
|
||||||
this.stateHistory = null;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.stateStoreChanged();
|
this.stateStoreChanged();
|
||||||
this.stateHistoryStoreChanged();
|
this.stateHistoryStoreChanged();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user