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 2019-11-04 21:38:18 +01:00 committed by Paulus Schoutsen
parent bbe0cf3a0c
commit e419689229
7 changed files with 235 additions and 4 deletions

View file

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