mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 08:59:57 +00:00
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:
committed by
Paulus Schoutsen
parent
bbe0cf3a0c
commit
e419689229
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user