From 27850ef5dfd5bf5ab19063b312d231a0a0f4c016 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 11 Jul 2015 12:28:11 -0700 Subject: [PATCH] Frontend: hide frontend specific attributes from default more info content --- homeassistant/components/frontend/version.py | 2 +- .../frontend/www_static/frontend.html | 26 +++++++++++-------- .../polymer/more-infos/more-info-content.html | 5 ++-- .../polymer/more-infos/more-info-default.html | 14 +++++++--- .../polymer/resources/home-assistant-js.html | 7 +---- 5 files changed, 31 insertions(+), 23 deletions(-) diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py index a985754cce5..0c1938ae74d 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 = "37bca585f7d18711253dc58e3481fbdf" +VERSION = "85f0078ea394a12dd95395799e345c83" diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html index 2a01590c765..1c0506bd83c 100644 --- a/homeassistant/components/frontend/www_static/frontend.html +++ b/homeassistant/components/frontend/www_static/frontend.html @@ -6513,9 +6513,6 @@ function(t,e,r){function n(t){return null==t?!1:i(t)?f.test(s.call(t)):u(t)&&o.t var DOMAINS_WITH_MORE_INFO = [ 'light', 'group', 'sun', 'configurator', 'thermostat', 'script', 'media_player', 'camera' ]; - var DOMAINS_HIDE_MORE_INFO = [ - 'sensor', - ]; var reactor = window.hass.reactor; var serviceGetters = window.hass.serviceGetters; @@ -6544,9 +6541,7 @@ function(t,e,r){function n(t){return null==t?!1:i(t)?f.test(s.call(t)):u(t)&&o.t }, stateMoreInfoType: function(state) { - if(DOMAINS_HIDE_MORE_INFO.indexOf(state.domain) !== -1) { - return false; - } else if(DOMAINS_WITH_MORE_INFO.indexOf(state.domain) !== -1) { + if(DOMAINS_WITH_MORE_INFO.indexOf(state.domain) !== -1) { return state.domain; } else { return 'default'; @@ -22957,7 +22952,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN