mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update python_script.markdown (#12139)
Clarification of yaml to call python_script
This commit is contained in:
parent
4f4053ecf7
commit
669e03af53
@ -65,6 +65,8 @@ 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
|
||||||
|
service: python_script.turn_on_light
|
||||||
|
data:
|
||||||
entity_id: light.bedroom
|
entity_id: light.bedroom
|
||||||
rgb_color: [255, 0, 0]
|
rgb_color: [255, 0, 0]
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user