From eaded9b67cf02b6ce35cf1a92e4b1707c57d22c5 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 Mar 2015 00:09:27 -0700 Subject: [PATCH] Add support for voice commands --- homeassistant/components/conversation.py | 1 + homeassistant/components/frontend/version.py | 2 +- .../frontend/www_static/frontend.html | 17 ++-- .../www_static/polymer/home-assistant-js | 2 +- .../polymer/layouts/partial-states.html | 79 ++++++++++++++++++- .../resources/home-assistant-icons.html | 2 + 6 files changed, 93 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/conversation.py b/homeassistant/components/conversation.py index 7ea35d34d7a..bf78e13a094 100644 --- a/homeassistant/components/conversation.py +++ b/homeassistant/components/conversation.py @@ -27,6 +27,7 @@ def setup(hass, config): logger = logging.getLogger(__name__) def process(service): + """ Parses text into commands for Home Assistant. """ if ATTR_TEXT not in service.data: logger.error("Received process service call without a text") return diff --git a/homeassistant/components/frontend/version.py b/homeassistant/components/frontend/version.py index 3886b2c2581..fc76773d501 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 = "1c265f0f07e6038c2cbb9b277e58b994" +VERSION = "832b49fd1e3ff3bc33e55812743c3a7d" diff --git a/homeassistant/components/frontend/www_static/frontend.html b/homeassistant/components/frontend/www_static/frontend.html index d9a004de623..49e1e28f993 100644 --- a/homeassistant/components/frontend/www_static/frontend.html +++ b/homeassistant/components/frontend/www_static/frontend.html @@ -122,9 +122,9 @@ b.events&&Object.keys(a).length>0&&console.log("[%s] addHostListeners:",this.loc background-color: #039be5; } - + - +