Notify when certificate is about to expire

any idea what wrong with my code here?

- id: Notify when certificate
  alias: 'Notify when certificate is about to expire'
  trigger:
    - platform: numeric_state
      entity_id: sensor.cert_expiration
      below: 7
  action:
    - service: notify.telegram
      data_template:
      message: Certificate is expire in {{ states('sensor.cert_expiration') }} days!

Not sure if this is the only thing but message needs to be indented.

Can you explain what you mean?

The line that starts message: needs to be indented two spaces further in than the line before it