Development:Dynamic Config Flow Elements

Feature Request

add an additional labels: Optional[Dict] = None parameter to ConfigFlow.async_show_form to display the label of the given key and overrule the whole translation logic.

Reason

In a ConfigFlow each key of a data_element must have a label/description in string.json. Otherwise the field will not have a label at all.
This means, that custom integrations can’t ask the user for dynamic content.

Possible Flow

Please Enter your OAuth Key for this integration: <Insert Key>

Next Flow:

Which groups do you want to import?

  • [X] Bedroom
  • [ ] Floor
  • [X] Kitchen

Submit

Bedroom, Floor and Kitchen are dynamically generated items. They are getting their name from the integration itself.

I’ve implemented this functionality.

Pull Requests: