Updated step as default Services view doesn't not allow defining Serv… (#930)

I was working through the documentation and found this confusing.  I had to Google and reference [this page](https://www.home-assistant.io/docs/tools/dev-tools/) to understand how to complete this step.
This commit is contained in:
peddamat 2021-05-11 10:18:53 -07:00 committed by GitHub
parent 3e17a760e0
commit 53b8a46271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,12 +40,11 @@ hello_service:
Open the frontend and in the sidebar, click the first icon in the developer tool section. This will open the Call Service developer tool. On the right, find your service and click on it. This will automatically fill in the correct values.
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 parameters. Add the following JSON as Service Data and press "Call Service again".
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
{
"name": "Planet"
}
service: helloworld_service.hello
data: { "name": "Planet" }
```
The service will now overwrite the previous state with "Planet".