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
# Example configuration.yaml entry
sensor:
platform: template
sensors:
next_departure:
value_template: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
friendly_name: "Next departure"
template:
- sensor:
- name : "Next departure"
state: "{{ state_attr('sensor.munich_to_ulm', 'next') }}"
```
{% endraw %}