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:
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(
|
||||
|
||||
Reference in new issue
Block a user