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:
parent
bbe0cf3a0c
commit
e419689229
7 changed files with 235 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue