From 68f8fd290ab3a7bb8dc6aabcb9985c9d8e51ecd7 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 30 Oct 2014 23:01:13 -0700 Subject: [PATCH] filtering by group no longer messes toggle for group state up --- homeassistant/components/http/frontend.py | 2 +- .../components/http/www_static/frontend.html | 497 +----------------- .../http/www_static/polymer/bower.json | 1 - .../polymer/home-assistant-api.html | 32 -- .../http/www_static/polymer/state-card.html | 7 +- .../http/www_static/polymer/states-cards.html | 20 +- 6 files changed, 19 insertions(+), 540 deletions(-) diff --git a/homeassistant/components/http/frontend.py b/homeassistant/components/http/frontend.py index 49170a1fb2a..a1c01f9dd60 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 = "b476e6588846c1ce0e194dfec06da78e" +VERSION = "e40dd5a3de19a9351e55be788b5bb526" diff --git a/homeassistant/components/http/www_static/frontend.html b/homeassistant/components/http/www_static/frontend.html index eca4ad79b3e..40656ddead7 100644 --- a/homeassistant/components/http/www_static/frontend.html +++ b/homeassistant/components/http/www_static/frontend.html @@ -10335,7 +10335,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN entity_id: "", stateChanged: function(oldVal, newVal) { - this.state_unknown = newVal == ""; + this.state_unknown = newVal == null; if(this.$.toggleButton) { this.$.toggleButton.checked = this.state == 'on'; @@ -10359,14 +10359,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN }, toggle: function(ev) { - if(this.$.toggleButton.checked) { + if(this.state == "off") { this.turn_on(); } else { this.turn_off(); } + // unset state while we wait for an update var delayUnsetSate = function() { - this.state = ""; + this.state = null; } setTimeout(delayUnsetSate.bind(this), 500); }, @@ -10427,11 +10428,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
- -