Integration config flow: how to show a ha-textarea on a form

I am not sure this is a proper place to ask.
There is some stock integration.
In the Core, for this integration a config flow is defined.
It includes a list of input fields like “this is str”, “this is a number between X and Y” etc.
In the Frontend, the “str” field is shown as a ha-textfield control.
But what if this input needs a ha-textarea control?
How to define it in a config flow?

Exactly ha-textarea is needed because ha-textfield is not convenient to use for template-supported values. Try defining a complex jinja template in a narrow one-line input.

All config flow schemas can use any of the selectors to pair with their fields.

A text selector, with the multiline key set to true, will present as an ha-textarea

1 Like

Seems to be a solution.
Will dig into this when come back home.
The thing is that I saw in config flow schema for an integration only “str”, number”, … - with no possibility to define smth like “multiline”.
Cannot provide a particular part of a code now, away from PC. Will be able in a week or two.

You can check SQL for an example.

        vol.Required(
            CONF_QUERY,
        ): selector.TextSelector(selector.TextSelectorConfig(multiline=True)),

Thank you a lot!
Will check it.

Also if you’re doing Jinja maybe you want template selector instead, that one is always multiline.