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
- -