From e7fc8a1890427b606629bfd7343b0fb93ea38b00 Mon Sep 17 00:00:00 2001 From: Peter Epley Date: Mon, 30 Oct 2017 03:11:23 -0400 Subject: [PATCH] Google Assistant Script Support (#10148) * Add script support as scene * Add script support as scene * Corrected missing script definition --- homeassistant/components/google_assistant/smart_home.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/google_assistant/smart_home.py b/homeassistant/components/google_assistant/smart_home.py index 8d25a02cc95..61727091000 100644 --- a/homeassistant/components/google_assistant/smart_home.py +++ b/homeassistant/components/google_assistant/smart_home.py @@ -15,7 +15,7 @@ from homeassistant.const import ( SERVICE_TURN_OFF, SERVICE_TURN_ON ) from homeassistant.components import ( - switch, light, cover, media_player, group, fan, scene + switch, light, cover, media_player, group, fan, scene, script ) from .const import ( @@ -34,6 +34,7 @@ _LOGGER = logging.getLogger(__name__) MAPPING_COMPONENT = { group.DOMAIN: [TYPE_SCENE, TRAIT_SCENE, None], scene.DOMAIN: [TYPE_SCENE, TRAIT_SCENE, None], + script.DOMAIN: [TYPE_SCENE, TRAIT_SCENE, None], switch.DOMAIN: [TYPE_SWITCH, TRAIT_ONOFF, None], fan.DOMAIN: [TYPE_SWITCH, TRAIT_ONOFF, None], light.DOMAIN: [