From debca88a0db1b3bdbcb6e26a5ebed9aaac072667 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 1 Jan 2015 20:03:24 -0800 Subject: [PATCH] All custom groups in 1 section instead of each their own --- homeassistant/components/demo.py | 2 +- .../polymer/home-assistant-api.html | 4 +++ .../polymer/home-assistant-main.html | 28 +++++++++---------- .../polymer/more-infos/more-info-default.html | 2 +- .../http/www_static/polymer/state-cards.html | 27 +++++++----------- 5 files changed, 29 insertions(+), 34 deletions(-) diff --git a/homeassistant/components/demo.py b/homeassistant/components/demo.py index 2bddaf4065d..e98e3692367 100644 --- a/homeassistant/components/demo.py +++ b/homeassistant/components/demo.py @@ -141,7 +141,7 @@ def setup(hass, config): }) # Setup chromecast - hass.states.set("chromecast.Living_Rm", "Netflix", + hass.states.set("chromecast.Living_Rm", "Plex", {'friendly_name': 'Living Room', ATTR_ENTITY_PICTURE: 'http://graph.facebook.com/KillBillMovie/picture'}) diff --git a/homeassistant/components/http/www_static/polymer/home-assistant-api.html b/homeassistant/components/http/www_static/polymer/home-assistant-api.html index cd6aac639e0..1a904d1a644 100644 --- a/homeassistant/components/http/www_static/polymer/home-assistant-api.html +++ b/homeassistant/components/http/www_static/polymer/home-assistant-api.html @@ -131,6 +131,10 @@ return found.length > 0; }, + getCustomGroups: function() { + return this.states.filter(function(state) { return state.isCustomGroup;}); + }, + _laterFetchStates: function() { if(this.stateUpdateTimeout) { clearTimeout(this.stateUpdateTimeout); diff --git a/homeassistant/components/http/www_static/polymer/home-assistant-main.html b/homeassistant/components/http/www_static/polymer/home-assistant-main.html index 133d86c987d..f9939a62dc0 100644 --- a/homeassistant/components/http/www_static/polymer/home-assistant-main.html +++ b/homeassistant/components/http/www_static/polymer/home-assistant-main.html @@ -99,12 +99,7 @@ selected="0" on-core-select="{{tabClicked}}"> ALL - - + GROUPS @@ -112,7 +107,7 @@ @@ -120,17 +115,21 @@