mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +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.
|
||||
|
||||
```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
|
||||
|
Loading…
x
Reference in New Issue
Block a user