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 %}