Improve examples in 0.113 blog post (#14075)

This commit is contained in:
Franck Nijhof 2020-07-24 11:09:18 +02:00 committed by GitHub
parent 7ca3ab937e
commit 1198b4d8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ button was pressed after 5 seconds.
automation: automation:
- trigger: - trigger:
- ... - ...
mode: queue mode: queued
action: action:
- ... - ...
``` ```
@ -194,13 +194,16 @@ The new repeat feature can be used in three different ways:
For example, this would spam your phone with the same message 10 times: For example, this would spam your phone with the same message 10 times:
```yaml ```yaml
- alias: Send notification spam to phone # Send notification spam to phone
repeat: script:
count: 10 phone_spam:
sequence: sequence:
- service: notify.frenck repeat:
data: count: 10
message: Ding dong! Someone is at the door! sequence:
- service: notify.frenck
data:
message: Ding dong! Someone is at the door!
``` ```
More information about repeats can be found in the [documentation][repeats]. More information about repeats can be found in the [documentation][repeats].
@ -222,7 +225,7 @@ of conditions.
```yaml ```yaml
automation: automation:
- alias: "Example" - alias: "Example"
description: "On button press, turn on the light bulb for 10 seconds." description: "On button press, choose the right thing to run."
trigger: trigger:
- platform: state - platform: state
entity_id: entity_id:
@ -371,7 +374,7 @@ This time we have both [@bdraco] and [@pvizeli] to thank for some great
optimizations that will reduce the CPU usage of Home Assistant. optimizations that will reduce the CPU usage of Home Assistant.
First of all, if you are running a Home Assistant OS, Container or First of all, if you are running a Home Assistant OS, Container or
Supervised installation, this your Home Assistant instance will run on Supervised installation, then your Home Assistant instance will run on
Python 3.8. No action from your end is needed for this. Python 3.8. No action from your end is needed for this.
It is not just a normal Python version, but [@pvizeli] has worked on a highly It is not just a normal Python version, but [@pvizeli] has worked on a highly