transport_nsw update template sensor example (#20020)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
SNoof85 2021-10-28 09:30:18 +02:00 committed by GitHub
parent cbdd8b9ee0
commit 054acb06fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,11 +89,10 @@ The sensor returns n/a if no stop event is found within the next 24h. A `templat
```yaml
# Sample template sensor
- platform: template
sensors:
busmonitor:
friendly_name: "Bus Mon 199"
value_template: >-
template:
- sensor:
- name: "Bus monitor 199"
state: >-
{% if is_state_attr('sensor.bus', 'due', 'n/a') %}
No schedule found
{% else %}