diff --git a/homeassistant/components/http/frontend.py b/homeassistant/components/http/frontend.py index 637bb09bbe6c1cd6c81731fa0d447b9355934afc..833f4c25af0d19bf4d73906a2319bd1471512382 100644 --- a/homeassistant/components/http/frontend.py +++ b/homeassistant/components/http/frontend.py @@ -1,2 +1,2 @@ """ DO NOT MODIFY. Auto-generated by build_polymer script """ -VERSION = "58011acca6d6fb5ec54edf5714b8c476" +VERSION = "6ce8abfbeaacbe30baeffc8875c023e5" diff --git a/homeassistant/components/http/www_static/frontend.html b/homeassistant/components/http/www_static/frontend.html index d4a0e5a0127d70676a58c76d16855eb8fee1dab2..def2f07226eae24a4b30166175986ba8b13aef99 100644 --- a/homeassistant/components/http/www_static/frontend.html +++ b/homeassistant/components/http/www_static/frontend.html @@ -10239,6 +10239,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN background-color: #039be5; } + state-badge[data-state=on][data-domain=light] { + color: #fff176; + } + .name, .state.text { text-transform: capitalize; font-weight: 300; @@ -10266,20 +10270,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN /* filling of circle when checked */ paper-toggle-button::shadow paper-radio-button::shadow #onRadio { background-color: #039be5; - transition: background-color .2s; } /* line when checked */ paper-toggle-button::shadow #toggleBar[checked] { background-color: #039be5; - transition: background-color .2s; } </style> <div horizontal="" justified="" layout=""> <div class="entity"> - <state-badge domain="{{domain}}" state="{{state}}" on-click="{{editClicked}}"> + <state-badge domain="{{domain}}" state="{{state}}" data-domain="{{domain}}" data-state="{{state}}" on-click="{{editClicked}}"> </state-badge> <div class="info"> @@ -13897,8 +13899,13 @@ core-item { // if entity_id is a string, update 1 state, else all. if(typeof(parameters.entity_id === "string")) { - update_func = function() { - this.fetchState(parameters.entity_id); + // if it is a group, fetch all + if(parameters.entity_id.slice(0,6) == "group.") { + update_func = this.fetchStates + } else { + update_func = function() { + this.fetchState(parameters.entity_id); + } } } else { update_func = this.fetchStates 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 1890bfa726dfa25eaa2793ba92afd8656ccd5c1f..8219129b86394b1ba399b7dbfb6e3fdb2a09f242 100644 --- a/homeassistant/components/http/www_static/polymer/home-assistant-api.html +++ b/homeassistant/components/http/www_static/polymer/home-assistant-api.html @@ -173,8 +173,13 @@ // if entity_id is a string, update 1 state, else all. if(typeof(parameters.entity_id === "string")) { - update_func = function() { - this.fetchState(parameters.entity_id); + // if it is a group, fetch all + if(parameters.entity_id.slice(0,6) == "group.") { + update_func = this.fetchStates + } else { + update_func = function() { + this.fetchState(parameters.entity_id); + } } } else { update_func = this.fetchStates