Attribute value template rfx sensor gives a error

When i use template for sensors for my rain sensor (rfx) i get an error.
I use the next value:

     regensensor_total:
     unit_of_measurement: 'mm'
     friendly_name: 'Regen totaal'
     value_template: {{states.sensor.regensensor_rain_rate.attributes["Rain total"]}}

When i try the dev-template in hass it gaves me the correct values back.
But when i put in my template part of my sensors file and restart hass i get the next errors:

Error loading /config/configuration.yaml: while parsing a flow mapping
  in "/config/sensors.yaml", line 169, column 23
expected ',' or '}', but got '['
  in "/config/sensors.yaml", line 169, column 70

about my template value i get this from here: https://github.com/home-assistant/home-assistant/issues/2716

EDIT:

Problem solved i missed the 2 ’ at the start and the end.

This one can close.