Is there a way to add a normal textarea in the config flow ?
Via Google, I only found an old feature request from 2020.
I tried it with ObjectSelector
vol.Required("advanced_options"): data_entry_flow.section(
vol.Schema(
{
vol.Optional(CONF_STATS_TEMPLATE, description={"suggested_value": current_data.get(CONF_STATS_TEMPLATE, "")}): ObjectSelector(ObjectSelectorConfig()),
}
),
# Whether or not the section is initially collapsed (default = False)
{"collapsed": True},
),
this shows me a kind of textarea but only for formatted code
I want to save text / code without any formatting / converting.
Content like this:
.amvg-headline {
color: red;
}
span.BAHN {
background-color: #FFFFFF;
color: #E30613;
border: 1px solid #E30613;
}
I know, I can write the css code in one line, but this is no user friendly option.