mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Update python_script.markdown (#12139)
Clarification of yaml to call python_script
This commit is contained in:
parent
4f4053ecf7
commit
669e03af53
@ -65,8 +65,10 @@ if entity_id is not None:
|
|||||||
The above `python_script` can be called using the following YAML as an input.
|
The above `python_script` can be called using the following YAML as an input.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
entity_id: light.bedroom
|
service: python_script.turn_on_light
|
||||||
rgb_color: [255, 0, 0]
|
data:
|
||||||
|
entity_id: light.bedroom
|
||||||
|
rgb_color: [255, 0, 0]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documenting your Python scripts
|
## Documenting your Python scripts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user