Update python_script.markdown (#10791)

This commit is contained in:
Luca Angemi 2019-10-15 11:10:40 +02:00 committed by Franck Nijhof
parent e81cd379bf
commit 3b99f3d575

View File

@ -34,10 +34,8 @@ hass.bus.fire(name, { "wow": "from a Python script!" })
- Start Home Assistant - Start Home Assistant
- Call service `python_script.hello_world` with parameters - Call service `python_script.hello_world` with parameters
```json ```yaml
{ name: you
"name": "you"
}
``` ```
## Calling Services ## Calling Services
@ -54,8 +52,9 @@ if entity_id is not None:
``` ```
The above `python_script` can be called using the following JSON as an input. The above `python_script` can be called using the following JSON as an input.
```json ```yaml
{"entity_id": "light.bedroom", "rgb_color": [255, 0, 0] } entity_id: light.bedroom
rgb_color: [255, 0, 0]
``` ```
## Documenting your Python scripts ## Documenting your Python scripts