I have a config flow defined for my custom integration, and one of my configuration options is a single-select dropdown of values. This is configured via vol.In, and generally works:
My problem is that I’d like to offer a more user-friendly display value for each of these entries, but I’m forced to show the “internal” value here. Is there a way to show a translatable, friendly display value for each of these permitted values?
When I update HA to 2022.6.4, vol.In change the format from comboBox to check box in the front end, I want to show the list by combo box like before, what should I do? It seems like the selector also can’t solve my problem.
Not sure if you have solved this but it seems that you need at least 6 options for it to display a combo box. 5 or less options displays as a radio button group. Haven’t found a way to change this.
Ok, have found how to do this. Should have looked more before I posted!
Use the new selector option and add a mode entry of dropdown to force it into dropdown mode instead of list mode. If this mode is not set, as before, less than 6 items will show a list. Ie.
Thank you for your help, it’s helpful.
I can show the comboBox via selector.
But I have another question is that I have two data_schema in config_flow,
and the list which shows as a comboBox is in the second data_schema.
The members of the list will be affected of the first data_schema, but it seems like
it will just show as the initial state, it won’t append the member to it after submitting the first data schema to call an API, but the vol.In will. What should I do? There is my second schema: