Make conversation and intent context aware (#28965)

* WIP

* LINT
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2019-11-26 11:30:21 +01:00
1 parent 6c6a5c50a5
commit c76f768a82
9 files changed
+82 -57

No files matched your search

+3 -1
View File
@@ -232,7 +232,9 @@ class SetIntentHandler(intent.IntentHandler):
service_data[ATTR_BRIGHTNESS_PCT] = slots["brightness"]["value"]
speech_parts.append("{}% brightness".format(slots["brightness"]["value"]))
await hass.services.async_call(DOMAIN, SERVICE_TURN_ON, service_data)
await hass.services.async_call(
DOMAIN, SERVICE_TURN_ON, service_data, context=intent_obj.context
)
response = intent_obj.create_response()