YAML format for dev tool service call example (#1217)

This commit is contained in:
Skyler Riley 2022-02-19 04:20:23 -07:00 committed by GitHub
parent 5c7f71620a
commit caf44c7187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,9 +54,10 @@ Open the frontend and in the sidebar, click the first icon in the developer tool
Pressing "Call Service" will now call your service without any parameters. This will cause your service to create a state with the default name 'World'. If you want to specify the name, you have to specify a parameter by providing it through Service Data. In YAML mode, add the following and press "Call Service again".
```json
```yaml
service: helloworld_service.hello
data: { "name": "Planet" }
data:
name: Planet
```
The service will now overwrite the previous state with "Planet".