From fd41a13cfe44d3f4551cc10918f79247b701e341 Mon Sep 17 00:00:00 2001 From: SNoof85 Date: Fri, 12 Nov 2021 08:36:40 +0100 Subject: [PATCH] Update deutsche_bahn template sensor example (#20272) --- source/_integrations/deutsche_bahn.markdown | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/_integrations/deutsche_bahn.markdown b/source/_integrations/deutsche_bahn.markdown index 501bb605719..82a8477b93f 100644 --- a/source/_integrations/deutsche_bahn.markdown +++ b/source/_integrations/deutsche_bahn.markdown @@ -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 %}