diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py
index e3e2ae2bf01..32ac212af89 100644
--- a/homeassistant/components/frontend/version.py
+++ b/homeassistant/components/frontend/version.py
@@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """
-VERSION = "a44970ec771fb08baa6b54ff00a4e223"
+VERSION = "9e4807d493dcb52e24dcd5163e6a2d4b"
diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html
index 149052babc5..c62c8efa628 100644
--- a/homeassistant/components/frontend/www_static/frontend.html
+++ b/homeassistant/components/frontend/www_static/frontend.html
@@ -5803,7 +5803,6 @@ this._removeChildren();
}
});
-
-
-
-
-
-
-
@@ -22777,7 +20859,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
-
+
Loading logbook entries
@@ -22828,6 +20910,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
function(entries) { return entries.toArray(); },
],
},
+
+ datePicker: {
+ type: Object,
+ },
},
isStaleChanged: function(newVal) {
@@ -22839,15 +20925,25 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
}
},
- handleShowDatePicker: function() {
- uiActions.showDatePicker(
- logbookActions.changeCurrentDate,
- this.selectedDate);
- },
-
handleRefresh: function() {
logbookActions.fetchDate(this.selectedDate);
},
+
+ datepickerFocus: function() {
+ this.datePicker.adjustPosition();
+ this.datePicker.gotoDate(moment('2015-06-30').toDate());
+ },
+
+ attached: function() {
+ this.datePicker = new Pikaday({
+ field: this.$.datePicker.inputElement,
+ onSelect: logbookActions.changeCurrentDate,
+ });
+ },
+
+ detached: function() {
+ this.datePicker.destroy();
+ },
});
})();
@@ -23141,7 +21237,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
@@ -23197,10 +21293,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
entityHistoryActions.fetchSelectedDate();
},
- handleShowDatePicker: function() {
- uiActions.showDatePicker(
- entityHistoryActions.changeCurrentDate,
- this.selectedDate);
+ datepickerFocus: function() {
+ this.datePicker.adjustPosition();
+ this.datePicker.gotoDate(moment('2015-06-30').toDate());
+ },
+
+ attached: function() {
+ this.datePicker = new Pikaday({
+ field: this.$.datePicker.inputElement,
+ onSelect: entityHistoryActions.changeCurrentDate,
+ });
+ },
+
+ detached: function() {
+ this.datePicker.destroy();
},
computeContentClasses: function(narrow) {
@@ -24500,1285 +22606,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
})();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
[[month.name]]
-
-
-
- [[name]]
-
-
-
-
-
-
-
-
-
- [[day.day]]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -27558,7 +24385,7 @@ paper-ripple {
stateObj: {
type: Object,
bindNuclear: moreInfoGetters.currentEntity,
- observer: 'fetchHistoryData',
+ observer: 'stateObjChanged',
},
stateHistory: {
@@ -27591,83 +24418,34 @@ paper-ripple {
dialogOpen: {
type: Boolean,
value: false,
+ observer: 'dialogOpenChanged',
},
},
- listeners: {
- 'iron-overlay-opened': 'onIronOverlayOpened',
- 'iron-overlay-closed': 'onIronOverlayClosed'
- },
-
- fetchHistoryData: function(newVal) {
+ fetchHistoryData: function() {
if (this.stateObj && this.hasHistoryComponent &&
this.shouldFetchHistory) {
entityHistoryActions.fetchRecent(this.stateObj.entityId);
}
},
- onIronOverlayOpened: function() {
- this.dialogOpen = true;
- },
-
- onIronOverlayClosed: function() {
- this.dialogOpen = false;
- moreInfoActions.deselectEntity();
- },
-
- show: function() {
- this.debounce('showDialogAfterRender', function() {
- this.$.dialog.open();
- }.bind(this), 1);
- },
- });
-})();
-
-
-
-
-
-
-
-
-
diff --git a/homeassistant/components/frontend/www_static/polymer/components/ha-sidebar.html b/homeassistant/components/frontend/www_static/polymer/components/ha-sidebar.html
index 4abb9ad782f..a9edc46b482 100644
--- a/homeassistant/components/frontend/www_static/polymer/components/ha-sidebar.html
+++ b/homeassistant/components/frontend/www_static/polymer/components/ha-sidebar.html
@@ -9,16 +9,6 @@
-
-
-
-
-
-
-
-
-
-