Add config endpoint for scene (#28429)

* Add config endpoint for scene

* Add scenes to default config

* Fix test and add context to websocket service call

* Update scene.py

* Add tests
This commit is contained in:
Bram Kragten authored and Paulus Schoutsen committed 2019-11-04 12:38:18 -08:00
1 parent bbe0cf3a0c
commit e419689229
7 files changed
+235 -4

No files matched your search

@@ -132,7 +132,9 @@ async def handle_call_service(hass, connection, msg):
blocking,
connection.context(msg),
)
connection.send_message(messages.result_message(msg["id"]))
connection.send_message(
messages.result_message(msg["id"], {"context": connection.context(msg)})
)
except ServiceNotFound as err:
if err.domain == msg["domain"] and err.service == msg["service"]:
connection.send_message(