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:
vol.Required(
CONF_PUBLISH_MODE,
default="all",
): vol.In(["all", "value_changed", "any_changed"])
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?