mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Corrected a yaml snippet that was labelled as json. (#11872)
This commit is contained in:
parent
e20231575d
commit
2cc03ae6f4
@ -56,7 +56,7 @@ if entity_id is not None:
|
|||||||
service_data = {"entity_id": entity_id, "rgb_color": rgb_color, "brightness": 255}
|
service_data = {"entity_id": entity_id, "rgb_color": rgb_color, "brightness": 255}
|
||||||
hass.services.call("light", "turn_on", service_data, False)
|
hass.services.call("light", "turn_on", service_data, False)
|
||||||
```
|
```
|
||||||
The above `python_script` can be called using the following JSON as an input.
|
The above `python_script` can be called using the following YAML as an input.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
entity_id: light.bedroom
|
entity_id: light.bedroom
|
||||||
|
Loading…
x
Reference in New Issue
Block a user