Config flow with list of dates?

I’m trying to write an integration and in the config flow I’d like to accept a list of dates (yyyy-mm-dd formatted strings). I can find lots of examples of how to express that in voluptuous, but none of them work with Home Assistant’s config flow; they all fatal with TypeError: issubclass() arg 1 must be a class in voluptuous_serialize.

Using selector.TextSelector({"type": selector.TextSelectorType.DATE}) I can make the config flow accept a single date, but I can’t figure out how to accept a list of dates. Is there a way to do so? Or do I need to make it a comma-separated string and parse it into a list on the back-end?

1 Like