Update deutsche_bahn template sensor example (#20272)

This commit is contained in:
SNoof85 2021-11-12 08:36:40 +01:00 committed by GitHub
parent 08529a9e4e
commit fd41a13cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,12 +49,10 @@ This sensor stores a lot of attributes which can be accessed by other sensors, e
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
sensor: template:
platform: template - sensor:
sensors: - name : "Next departure"
next_departure: state: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
value_template: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
friendly_name: "Next departure"
``` ```
{% endraw %} {% endraw %}