Error with config.yaml

I am trying to add sensors in config.yaml, unfortunastwly it does not work.

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
platform: google_translate

sensor: !include sensor.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml 

I get the following error:

Integration error: platform - Integration 'platform' not found.
Invalid config for [sensor]: required key not provided @ data['platform']. Got 'google_translate'. (See /config/configuration.yaml, line 8).

what am I doing wrong (probably some very basic mistake)

Thx for your help.

tts config seems to be off, check the docs

# Text to speech
tts:
- platform: google_translate
sensor: !include sensor.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml 

sorry this is the correct config including the error.

Invalid config for [sensor]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 7).

TTS:

tts:
  - platform: google_translate

Just changes it to:

tts:
  - platform: google_translate
sensor: !include sensor.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml 

still the same error

What is in your sensor.yaml

This is in sensor.yaml

sensor:
- platform: time_date
  display_options:
  - 'time'
  - 'date'
  - platform: template
    sensors:

     time-of-day:
     friendly_name: "Tageszeit"
     value_template: >-
      {% if is_state('binary_sensor.morgen','on') %}
       Morgen
      {% elif is_state('binary_sensor.tag','on') %}
       Tag
      {% elif is_state('binary_sensor.abend','on') %}
       Abend   
      {% else %}
       Nacht
      {%endif%}

just a test, it does not give me errors.

You dont need the “sensor:” in begin the sensor.yaml, try this

- platform: time_date
  display_options:
    - 'time'
    - 'date'

- platform: template
  sensors:
    time-of-day:
      friendly_name: "Tageszeit"
      value_template: >-
         {% if is_state('binary_sensor.morgen','on') %}
           Morgen
         {% elif is_state('binary_sensor.tag','on') %}
           Tag
         {% elif is_state('binary_sensor.abend','on') %}
           Abend   
         {% else %}
           Nacht
         {% endif %}