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(); } }); + @@ -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 @@ @@ -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):