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 ```yaml
# Sample template sensor # Sample template sensor
- platform: template template:
sensors: - sensor:
busmonitor: - name: "Bus monitor 199"
friendly_name: "Bus Mon 199" state: >-
value_template: >-
{% if is_state_attr('sensor.bus', 'due', 'n/a') %} {% if is_state_attr('sensor.bus', 'due', 'n/a') %}
No schedule found No schedule found
{% else %} {% else %}