Converting JSON to YAML (#9927)

Given that people use YAML, another old JSON approach converted to YAML.
This commit is contained in:
Dubh Ad 2019-07-20 12:54:33 +01:00 committed by Franck Nijhof
parent ba5958c5ab
commit e90d506a2c

View File

@ -66,21 +66,15 @@ Right click channel name and copy the channel ID (**Copy ID**).
This channel ID has to be used as the target when calling the notification service. Multiple channel IDs can be specified, across multiple servers. This channel ID has to be used as the target when calling the notification service. Multiple channel IDs can be specified, across multiple servers.
#### Example service payload #### Example service call
```json ```yaml
{ - service: notify.discord
"message": "A message from Home Assistant", data:
"target": [ message from Home Assistant",
"1234567890", target: "1234567890", "0987654321"
"0987654321" data:
], images: "/tmp/garage_cam"
"data": {
"images": [
"/tmp/garage_cam.jpg"
]
}
}
``` ```
### Notes ### Notes