Configuration not valid automations

Hello
I have a problem finding out what is causing this when checking my configuration:
Invalid config for [automation]: required key not provided @ data[‘action’]. Got None
required key not provided @ data[‘trigger’]. Got None. (See /config/configuration.yaml, line 94). Please check the docs at https://home-assistant.io/components/automation/

Here is the part in my configuration file that it refers to:

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

And here is my automations.yaml:

- alias: Media player paused/stopped
  trigger:
  - platform: state
    entity_id: media_player.tv
    from: playing
    to: paused
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
    service: scene.turn_on
    entity_id: scene.livingroom_normal
  id: 98e11ba249e541e2a1f75193f54d1b2b
- alias: Media player playing
  trigger:
  - platform: state
    entity_id: media_player.tv
    to: playing
    from: paused
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
    service: scene.turn_on
    entity_id: scene.livingroom_dim
  id: 6237de3eb11c41bba188223c70f92e15
- id: '1546584080845'
  alias: Lys ettermiddag
  trigger:
  - event: sunset
    offset: -00:30:00
    platform: sun
  - entity_id: group.personer
    platform: state
    to: home
  condition:
  - condition: sun
    after: sunset
    after_offset: -00:30:00
  - before: '23:30:00'
    condition: time
  action:
  - data:
      entity_id: scene.lys_ettermiddag
    service: scene.turn_on
- id: '1546626365367'
  alias: 'Alle borte '
  trigger:
  - entity_id: group.personer
    platform: state
    to: not_home
  condition:
  - after: '10:00'
    before: '23:30'
    condition: time
  action:
  - data:
      entity_id: light.alt_lys
    service: light.turn_off
- id: '1546767237569'
  alias: Lys av morgen
  trigger:
  - at: 09:00
    platform: time
  condition:
  - condition: state
    entity_id: group.personer2
    state: not_home
  action:
  - data:
      entity_id: light.alt_lys
    service: light.turn_off
- id: '1547718121122'
- id: '1547791486754'
  alias: Motorvarmer på
  trigger:
  - at: 06:00:00
    platform: time
  condition:
  - below: '2'
    condition: numeric_state
    entity_id: sensor.ute_temperature
  - condition: state
    entity_id: group.personer2
    state: home
  action:
  - data:
      entity: switch.motorvarmer
    service: switch.turn_on
  - delay: 02:00:00
  - data:
      entity: switch.motorvarmer
    service: switch.turn_off

You have a line before your last automation that is not needed

  - data:
      entity_id: light.alt_lys
    service: light.turn_off
- id: '1547718121122' // delete this line.
- id: '1547791486754'
  alias: Motorvarmer på
  trigger:
  - at: 06:00:00
    platform: time
  condition:
1 Like

Removing that line did the trick. Thank you!