Templating attribute values in quotes

One of my sensors reports a quoted value as (nested) attribute. I suppose this is why I get None when I call it with a template. Is that true? How can I deal with it?

Templates:

{{state_attr('sensor.oebb_journey_0','retard')}}

{{state_attr('sensor.oebb_journey_0','retard'['dlt'])}}

Results:

{'status': None, 'dlm': '39', 'dlt': '09:09'}

None

{{ state_attr('sensor.oebb_journey_0','retard').dlt }}

1 Like

Thank you for your fast help.