From caf44c71870b71868b958949733671a49fdab39e Mon Sep 17 00:00:00 2001 From: Skyler Riley Date: Sat, 19 Feb 2022 04:20:23 -0700 Subject: [PATCH] YAML format for dev tool service call example (#1217) --- docs/dev_101_services.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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".