Update python_script.markdown (#12139)

Clarification of yaml to call  python_script
This commit is contained in:
perjury 2020-02-20 12:34:02 +00:00 committed by GitHub
parent 4f4053ecf7
commit 669e03af53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,10 @@ if entity_id is not None:
The above `python_script` can be called using the following YAML as an input.
```yaml
entity_id: light.bedroom
rgb_color: [255, 0, 0]
service: python_script.turn_on_light
data:
entity_id: light.bedroom
rgb_color: [255, 0, 0]
```
## Documenting your Python scripts