Help Message malformed

Get the following error message:

Message malformed: expected dict for dictionary value @ data['action'][0]['event_data']
description: ""
mode: single
  - platform: device
    device_id: 3d7b00cc230e891e8b886e0f8b59d3e3
    domain: device_tracker
    entity_id: device_tracker.handy
    type: enters
    zone: zone.home
condition: []
  - event: dsfds
    event_data: automation.led_on
alias: test

You can’t assign a value directly to event_data. Create a variable and assign the value to it. For example:

  - event: dsfds
      entity: automation.led_on

Technically speaking, event_data must contain a dictionary (that’s why the error message indicates it’s expecting ‘dict’) and entity: automation.led_on represents one key-value pair of a dictionary.