Skip to content

Commit 669e03a

Browse files
authored
Update python_script.markdown (#12139)
Clarification of yaml to call python_script
1 parent 4f4053e commit 669e03a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/_integrations/python_script.markdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ if entity_id is not None:
6565
The above `python_script` can be called using the following YAML as an input.
6666

6767
```yaml
68-
entity_id: light.bedroom
69-
rgb_color: [255, 0, 0]
68+
service: python_script.turn_on_light
69+
data:
70+
entity_id: light.bedroom
71+
rgb_color: [255, 0, 0]
7072
```
7173

7274
## Documenting your Python scripts

0 commit comments

Comments
 (0)