IMAP event data not retrieved

I have installed the IMAP integration and created a sensor that seems to be working properly. I created an automation that uses the state change as a trigger, so I know its updating.

Using DeveloperTools|States, I can see that it has the following data:
state: 2
state_class: measurement
unit_of_measurement: messages
friendly_name: Email for Webmaster

The following template creates the entity “sensor.aa_imap_content”, but its only attribute is FriendlyName. NO other
The template is almost identical to that in the IMAP examples. Is there any direct method to observe trigger.event.data?

What am I missing?
Thanks.

- trigger:
    - trigger: event
      event_type: "imap_content"
      id: "AA_custom_event"
  sensor:
    - name: AA_imap_content
      state: "{{ trigger.event.data['subject'] }}"
      attributes:
        Entry: "{{ trigger.event.data['entry_id'] }}"
        UID: "{{ trigger.event.data['uid'] }}"
        Message: "{{ trigger.event.data['text'] }}"
        Server: "{{ trigger.event.data['server'] }}"
        Username: "{{ trigger.event.data['username'] }}"
        Search: "{{ trigger.event.data['search'] }}"
        Folder: "{{ trigger.event.data['folder'] }}"
        Sender: "{{ trigger.event.data['sender'] }}"
        Date: "{{ trigger.event.data['date'] }}"
        Subject: "{{ trigger.event.data['subject'] }}"
        Initial: "{{ trigger.event.data['initial'] }}"
        To: "{{ trigger.event.data['headers'].get('Delivered-To', ['n/a'])[0] }}"
        Return-Path: "{{ trigger.event.data['headers'].get('Return-Path',['n/a'])[0] }}"
        Received-first: "{{ trigger.event.data['headers'].get('Received',['n/a'])[0] }}"
        Received-last: "{{ trigger.event.data['headers'].get('Received',['n/a'])[-1] }}"

You can use the Event tool to listen for the imap_content events and see what data they contain.

Where did you place that configuration?

Sorry for the late reply, but thanks. After using the event tool, I was easily able to determine the problem. I had initially placed “imap:” into the configuration.yaml file. Once removed the integration worked. Thank you.