diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py
index 0955db15844..494e598e773 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 = "5fe3c81071fb3a771d93105eb9b911ed"
+VERSION = "1001fa37eccf171f7e364cf29a0d7fbb"
diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html
index 5aec7f94e72..7371e2276eb 100644
--- a/homeassistant/components/frontend/www_static/frontend.html
+++ b/homeassistant/components/frontend/www_static/frontend.html
@@ -5803,6 +5803,7 @@ this._removeChildren();
}
});
+
@@ -20276,6 +20176,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
cursor: pointer;
overflow: hidden;
+
+ -ms-user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
}
@@ -20303,9 +20207,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
cardTapped: function(ev) {
ev.stopPropagation();
- this.debounce('show-more-info-dialog', function() {
- moreInfoActions.selectEntity(this.stateObj.entityId);
- }.bind(this), 100);
+ this.async(moreInfoActions.selectEntity.bind(
+ this, this.stateObj.entityId), 100);
},
});
})();
@@ -20962,10 +20865,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
isStaleChanged: function(newVal) {
if (newVal) {
- // isLoading wouldn't update without debounce <_<
- this.debounce('fetch-logbook-entries', function() {
- logbookActions.fetchDate(this.selectedDate);
- }, 0);
+ // isLoading wouldn't update without async <_<
+ this.async(
+ function() { logbookActions.fetchDate(this.selectedDate); }, 10);
}
},
@@ -24003,6 +23905,173 @@ paper-ripple {
});
})();
+
+
+
+
+
+
+
+
@@ -24039,9 +24108,9 @@ paper-ripple {
-
-
-
+
+
+
@@ -24071,7 +24140,7 @@ paper-ripple {
this.brightnessSliderValue = newVal.attributes.brightness;
}
- this.debounce('more-info-light-animation-finish', function() {
+ this.async(function() {
this.fire('iron-resize');
}.bind(this), 500);
},
@@ -24224,7 +24293,7 @@ paper-ripple {
},
- stateObjChanged: function(newVal, oldVal) {
+ stateObjChanged: function(newVal) {
if (newVal) {
this.isOff = newVal.state == 'off';
this.isPlaying = newVal.state == 'playing';
@@ -24239,9 +24308,7 @@ paper-ripple {
this.supportsTurnOff = (newVal.attributes.supported_media_commands & 256) !== 0;
}
- this.debounce('more-info-volume-animation-finish', function() {
- this.fire('iron-resize');
- }.bind(this), 500);
+ this.async(function() { this.fire('iron-resize'); }.bind(this), 500);
},
computeClassNames: function(stateObj) {
@@ -24481,9 +24548,11 @@ paper-ripple {
this.fetchHistoryData();
- window.requestAnimationFrame(function() {
+ // allow dialog to render content before showing it so it is
+ // positioned correctly.
+ this.async(function() {
this.dialogOpen = true;
- }.bind(this));
+ }.bind(this), 10);
},
dialogOpenChanged: function(newVal) {
@@ -25106,6 +25175,12 @@ paper-ripple {
background: #fafafa;
box-shadow: 1px 0 1px rgba(0, 0, 0, 0.1);
overflow: hidden;
+
+ white-space: nowrap;
+
+ -ms-user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
}
/*.sidenav paper-menu {
diff --git a/homeassistant/components/frontend/www_static/polymer/bower.json b/homeassistant/components/frontend/www_static/polymer/bower.json
index 3544f6f8d1a..093fed11a46 100644
--- a/homeassistant/components/frontend/www_static/polymer/bower.json
+++ b/homeassistant/components/frontend/www_static/polymer/bower.json
@@ -35,7 +35,6 @@
"google-apis": "GoogleWebComponents/google-apis#0.8-preview",
"moment": "^2.10.3",
"layout": "Polymer/layout",
- "color-picker-element": "~0.0.3",
"paper-styles": "polymerelements/paper-styles#^1.0.0",
"lodash": "~3.9.3",
"pikaday": "~1.3.2"
diff --git a/homeassistant/components/frontend/www_static/polymer/cards/state-card.html b/homeassistant/components/frontend/www_static/polymer/cards/state-card.html
index 95d02164085..6a21706da74 100644
--- a/homeassistant/components/frontend/www_static/polymer/cards/state-card.html
+++ b/homeassistant/components/frontend/www_static/polymer/cards/state-card.html
@@ -16,6 +16,10 @@
cursor: pointer;
overflow: hidden;
+
+ -ms-user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
}
@@ -43,9 +47,8 @@
cardTapped: function(ev) {
ev.stopPropagation();
- this.debounce('show-more-info-dialog', function() {
- moreInfoActions.selectEntity(this.stateObj.entityId);
- }.bind(this), 100);
+ this.async(moreInfoActions.selectEntity.bind(
+ this, this.stateObj.entityId), 100);
},
});
})();
diff --git a/homeassistant/components/frontend/www_static/polymer/components/ha-color-picker.html b/homeassistant/components/frontend/www_static/polymer/components/ha-color-picker.html
new file mode 100644
index 00000000000..46ced3ddf64
--- /dev/null
+++ b/homeassistant/components/frontend/www_static/polymer/components/ha-color-picker.html
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
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 c8c8e32ebfb..8746ee126c8 100644
--- a/homeassistant/components/frontend/www_static/polymer/components/ha-sidebar.html
+++ b/homeassistant/components/frontend/www_static/polymer/components/ha-sidebar.html
@@ -19,6 +19,12 @@ Too broken for now.
background: #fafafa;
box-shadow: 1px 0 1px rgba(0, 0, 0, 0.1);
overflow: hidden;
+
+ white-space: nowrap;
+
+ -ms-user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
}
/*.sidenav paper-menu {
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 6185ef8bb7b..78c50c4ae93 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
@@ -118,9 +118,11 @@
this.fetchHistoryData();
- window.requestAnimationFrame(function() {
+ // allow dialog to render content before showing it so it is
+ // positioned correctly.
+ this.async(function() {
this.dialogOpen = true;
- }.bind(this));
+ }.bind(this), 10);
},
dialogOpenChanged: function(newVal) {
diff --git a/homeassistant/components/frontend/www_static/polymer/layouts/login-form.html b/homeassistant/components/frontend/www_static/polymer/layouts/login-form.html
index 69da9515948..43b1e97590c 100644
--- a/homeassistant/components/frontend/www_static/polymer/layouts/login-form.html
+++ b/homeassistant/components/frontend/www_static/polymer/layouts/login-form.html
@@ -13,6 +13,10 @@
diff --git a/homeassistant/components/frontend/www_static/polymer/layouts/partial-logbook.html b/homeassistant/components/frontend/www_static/polymer/layouts/partial-logbook.html
index 0c997d3d790..a6fc0f615d8 100644
--- a/homeassistant/components/frontend/www_static/polymer/layouts/partial-logbook.html
+++ b/homeassistant/components/frontend/www_static/polymer/layouts/partial-logbook.html
@@ -89,10 +89,9 @@
isStaleChanged: function(newVal) {
if (newVal) {
- // isLoading wouldn't update without debounce <_<
- this.debounce('fetch-logbook-entries', function() {
- logbookActions.fetchDate(this.selectedDate);
- }, 0);
+ // isLoading wouldn't update without async <_<
+ this.async(
+ function() { logbookActions.fetchDate(this.selectedDate); }, 10);
}
},
diff --git a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html
index b9d49e1f474..702eb5fd354 100644
--- a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html
+++ b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-light.html
@@ -1,7 +1,7 @@
-
+
@@ -41,7 +41,7 @@
-
+
@@ -73,7 +73,7 @@
this.brightnessSliderValue = newVal.attributes.brightness;
}
- this.debounce('more-info-light-animation-finish', function() {
+ this.async(function() {
this.fire('iron-resize');
}.bind(this), 500);
},
diff --git a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-media_player.html b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-media_player.html
index 2f10a0897a4..1553ee5f1b1 100644
--- a/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-media_player.html
+++ b/homeassistant/components/frontend/www_static/polymer/more-infos/more-info-media_player.html
@@ -127,7 +127,7 @@
},
- stateObjChanged: function(newVal, oldVal) {
+ stateObjChanged: function(newVal) {
if (newVal) {
this.isOff = newVal.state == 'off';
this.isPlaying = newVal.state == 'playing';
@@ -142,9 +142,7 @@
this.supportsTurnOff = (newVal.attributes.supported_media_commands & 256) !== 0;
}
- this.debounce('more-info-volume-animation-finish', function() {
- this.fire('iron-resize');
- }.bind(this), 500);
+ this.async(function() { this.fire('iron-resize'); }.bind(this), 500);
},
computeClassNames: function(stateObj) {
diff --git a/homeassistant/components/media_player/cast.py b/homeassistant/components/media_player/cast.py
index b26fa647b00..77cdf79a112 100644
--- a/homeassistant/components/media_player/cast.py
+++ b/homeassistant/components/media_player/cast.py
@@ -153,8 +153,7 @@ class CastDevice(MediaPlayerDevice):
@property
def media_title(self):
""" Title of current playing media. """
- title = self.media_status.title if self.media_status else None
- return title if title else self.cast.app_display_name
+ return self.media_status.title if self.media_status else None
@property
def media_artist(self):