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 9d16ab9e561..2008fddf41e 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
@@ -29,7 +29,8 @@
+ on-tap='handleTogglePower'
+ hidden$='[[computeHidePowerButton(isOff, supportsTurnOn, supportsTurnOff)]]'>
@@ -154,10 +155,6 @@
return stateObj.state == 'off';
},
- computePowerButtonCaption: function(isOff) {
- return isOff ? 'Turn on' : 'Turn off';
- },
-
computeMuteVolumeIcon: function(isMuted) {
return isMuted ? 'av:volume-off' : 'av:volume-up';
},
@@ -169,6 +166,10 @@
return 'av:play-arrow';
},
+ computeHidePowerButton: function(isOff, supportsTurnOn, supportsTurnOff) {
+ return isOff && !supportsTurnOn || !isOff && supportsTurnOff;
+ },
+
handleTogglePower: function() {
this.callService(this.isOff ? 'turn_on' : 'turn_off');
},