Not a valid value for dictionary value @ data['entity_id']

Hi folks, I’m facing with an issue raised after upgrading to core-2021.5.0 before this point all works fine.

This is the error I got:
Error executing script. Invalid data for call_service at pos 1: not a valid value for dictionary value @ data['entity_id']

And this is my script:

alias: Nabu casa TTS notification
sequence:
  - service: tts.cloud_say
    data_template:
      entity_id: '{{ tts_media_player }}'
      message: '{{ tts_message }}'
      options:
        gender: female
      language: it-IT
  - service: persistent_notification.create
    data:
      title: |
        '{{ tts_media_player }}'
      message: |
        '{{ tts_message }}'
mode: single
icon: 'mdi:cast'

Where I’m wrong?