Update docs for call_service WS API (#1881)

* Update docs for call_service WS API

* Update websocket.md
This commit is contained in:
Raman Gupta 2023-11-10 15:45:12 -05:00 committed by GitHub
parent ebe0f574d5
commit ce381b54bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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