From ce381b54bc029724d8bc95521207527cb29f611c Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:45:12 -0500 Subject: [PATCH] Update docs for call_service WS API (#1881) * Update docs for call_service WS API * Update websocket.md --- docs/api/websocket.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/api/websocket.md b/docs/api/websocket.md index 3648b1c7..38ccc34b 100644 --- a/docs/api/websocket.md +++ b/docs/api/websocket.md @@ -368,11 +368,14 @@ The server will indicate with a message indicating that the service is done exec "id": "326ef27d19415c60c492fe330945f954", "parent_id": null, "user_id": "31ddb597e03147118cf8d2f8fbea5553" - } + }, + "response": null } } ``` +The `result` of the call will always include a `response` to account for services that support responses. When a service that doesn't support responses is called, the value of `response` will be `null`. + ## Fetching states This will get a dump of all the current states in Home Assistant.