diff --git a/docs/dev_101_services.md b/docs/dev_101_services.md index 40672df1..009ea38a 100644 --- a/docs/dev_101_services.md +++ b/docs/dev_101_services.md @@ -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".