Update python_script.markdown (#12055)

* Update python_script.markdown

* ✏️ Tweak

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Federico Granata 2020-02-12 08:38:12 +01:00 committed by GitHub
parent 3adb4c4e42
commit 1e4701b120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,12 @@ hass.bus.fire(name, {"wow": "from a Python script!"})
name: you
```
<div class='note'>
Running this script show absolutely no output on the screen, but it logs with level `info`. You must have the [Logger](/integrations/logger/) enabled at least for level `info`.
</div>
## Calling Services
The following example shows how to call a service from `python_script`. This script takes two parameters: `entity_id` (required), `rgb_color` (optional) and calls `light.turn_on` service by setting the brightness value to `255`.