Skip to content

Great work! I would like to see sections and next/next/finish configuration #1

Description

@StefanoGiu

Great work! I would like to see sections and next/next/finish configuration

from homeassistant.data_entry_flow import section --> To group the params.

I'm using this:

        vol.Required(CONF_SECTION_ENERGY_QUOTE): section(
            vol.Schema(
                {
                    vol.Required(CONF_TARIFF_TYPE, default=TARIFF_TYPES.tariff_mono): selector.SelectSelector(
                        selector.SelectSelectorConfig(
                            options=list(TARIFF_TYPES),
                            translation_key="tariff_types",
                            mode=selector.SelectSelectorMode.DROPDOWN,
                        )
                    ),
                    vol.Required(CONF_NW_LOSS_PERCENTAGE, default=10) : cv.positive_int,
                }
            ),      {"collapsed": True},
        ),      

It works, but:

  1. There's no title in the collapsible group
  2. If I put the DROPDOWN under a section, I lose the translation....

I would like to see also an example of next/next/finish (e.g. 3 windows to configure the custom component)

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions