Google TTS automation stopped working after update

Hi, I had this template for Google TTS:

service: tts.google_translate_say
data:
  cache: false
  entity_id: media_player.despertador
  language: pt-pt
  message: >-
    Bom dia Sandro! São {{ now().strftime('%-I:%M') }} .

    {% set target_time = strptime("15:00:00", "%H:%M:%S") %}
      {% set timer_time = state_attr('timer.duracao_sono_sandro', 'remaining') %}
      {% set current_time = now().strftime("%H:%M:%S") %}
      {% set time_difference = (target_time - strptime(timer_time, "%H:%M:%S")).total_seconds() %}
      {% set hours = (time_difference // 3600) | int %}
      {% set minutes = ((time_difference % 3600) // 60) | int %}
      {% set seconds = (time_difference % 60) | int %}
      Hoje dormiste durante {{ hours }} horas e {{ minutes }} minutos.

    Hoje vai estar {% set weather_state = states('weather.ipma') %} {% if
    weather_state == 'rainy' %} a chover {% elif weather_state == 'cloudy' %}
    enublado {% elif weather_state == 'sunny' %} um belo dia de sol {% elif
    weather_state == 'fog' %} nevoeiro  {% elif weather_state == 'partlycloudy'
    or weather_state == 'partly cloudy' %} parcialmente enublado {% elif
    weather_state == 'clear' %} céu completamente limpo {% else %} {{
    weather_state }} {% endif %} com uma temperatura máxima de {{
    state_attr('weather.ipma', 'forecast') | map(attribute='temperature') |
    map('float') | max | round(0, 'ceil') }} graus.


    {% set today = now().date() %}
          {% set event = state_attr('calendar.eventos', 'message') %}
          {% set start_time_str = state_attr('calendar.eventos', 'start_time') %}
          {% set start_time = strptime(start_time_str, "%Y-%m-%d %H:%M:%S") %}
          {% if start_time.date() == today %}
            Não te esqueças que hoje às {{ start_time.strftime('%H:%M') }} tens o evento "{{ event }}" .
          {% else %}
            Não tens eventos planeados. 
          {% endif %}

But now, I think after the last update, it stopped working. I went to check the automation and I now get this error:

Error rendering data template: ValueError: Template error: strptime got invalid input 'None' when rendering template 'Bom dia Sandro! São {{ now().strftime('%-I:%M') }} . {% set target_time = strptime("15:00:00", "%H:%M:%S") %} {% set timer_time = state_attr('timer.duracao_sono_sandro', 'remaining') %} {% set current_time = now().strftime("%H:%M:%S") %} {% set time_difference = (target_time - strptime(timer_time, "%H:%M:%S")).total_seconds() %} {% set hours = (time_difference // 3600) | int %} {% set minutes = ((time_difference % 3600) // 60) | int %} {% set seconds = (time_difference % 60) | int %} Hoje dormiste durante {{ hours }} horas e {{ minutes }} minutos. Hoje vai estar {% set weather_state = states('weather.ipma') %} {% if weather_state == 'rainy' %} a chover {% elif weather_state == 'cloudy' %} enublado {% elif weather_state == 'sunny' %} um belo dia de sol {% elif weather_state == 'fog' %} nevoeiro {% elif weather_state == 'partlycloudy' or weather_state == 'partly cloudy' %} parcialmente enublado {% elif weather_state == 'clear' %} céu completamente limpo {% else %} {{ weather_state }} {% endif %} com uma temperatura máxima de {{ state_attr('weather.ipma', 'forecast') | map(attribute='temperature') | map('float') | max | round(0, 'ceil') }} graus. {% set today = now().date() %} {% set event = state_attr('calendar.eventos', 'message') %} {% set start_time_str = state_attr('calendar.eventos', 'start_time') %} {% set start_time = strptime(start_time_str, "%Y-%m-%d %H:%M:%S") %} {% if start_time.date() == today %} Não te esqueças que hoje às {{ start_time.strftime('%H:%M') }} tens o evento "{{ event }}" . {% else %} Não tens eventos planeados. {% endif %}' but no default was specified

Do you know what’s causing it? Do you know how to fix it?