Lists not found error in custom intents

Hello,

I tried to write custom intents in my configuration.yaml

this works fine:

conversation:
  intents:
    Test:
      - "test"

intent_script:
  Test:
    speech:
      text: "Test"

Then I tried to use lists as in this example: Assist - Custom Sentences - Home Assistant

conversation:
  intents:
    Test:
      - "test"
    Weather:
      - "[What is the] weather like in {weather_city}?"

lists:
  weather_city:
    values:
      - in: "City 1"
        out: "sensor.openweathermap_condition"
      - in: "City 2"
        out: "sensor.openweathermap_condition_2"

intent_script:
  Test:
    speech:
      text: "test"
  Weather:
    speech:
      text: "The Weather is {weather_city}"

But when I try to validate my configuration.yaml I get this Error “Integration error: lists - Integration ‘lists’ not found.” How can I fix this?

This probably is an indents mistake (not intents :wink: )
The lists: entry has to be at the same indentation level as the intents: entry.

Thanks for your reply!

So, I tried this:

conversation:
  intents:
    Test:
      - "test"
    Weather:
      - "[What is the] weather like in {weather_city}?"

  lists:
    weather_city:
      values:
        - in: "City 1"
          out: "sensor.openweathermap_condition"
        - in: "City 2"
          out: "sensor.openweathermap_condition_2"

intent_script:
  Test:
    speech:
      text: "test"
  Weather:
    speech:
      text: "The Weather is {weather_city}"

But now I just get a different error: Invalid config for [conversation]: [lists] is an invalid option for [conversation]. Check: conversation->conversation->lists.