From 7f788d6be1f70ec71437abbd353ecda0f14e2a13 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 2 Jun 2015 23:36:37 -0700 Subject: [PATCH] Update media player more info --- homeassistant/components/frontend/version.py | 2 +- .../frontend/www_static/frontend.html | 160 +++++++++++++----- .../www_static/polymer/cards/state-card.html | 1 + .../more-infos/more-info-media_player.html | 125 ++++++++++---- .../resources/home-assistant-icons.html | 2 +- .../components/media_player/__init__.py | 28 +-- homeassistant/components/media_player/demo.py | 5 +- 7 files changed, 233 insertions(+), 90 deletions(-) diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py index 4f30d388227..b743cdec1fe 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 = "ed339673ca129a1a51dcc3975d0a492d" +VERSION = "464ae07e4263837b88b3e5bda062eaed" diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html index 14bf41970f0..813c788c26c 100644 --- a/homeassistant/components/frontend/www_static/frontend.html +++ b/homeassistant/components/frontend/www_static/frontend.html @@ -16975,7 +16975,7 @@ window.hass.uiUtil.domainIcon = function(domain, state) { case "media_player": var icon = "hardware:cast"; - if (state && state !== "idle") { + if (state && state !== "off" && state !== 'idle') { icon += "-connected"; } @@ -22301,8 +22301,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
-
[[computePrimaryText(stateObj)]]
-
[[computeSecondaryText(stateObj)]]
+
[[computePrimaryText(stateObj, isPlaying)]]
+
[[computeSecondaryText(stateObj, isPlaying)]]
@@ -22310,6 +22310,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN