Skip to content

Conversation

@cr7pt0gr4ph7
Copy link
Contributor

@cr7pt0gr4ph7 cr7pt0gr4ph7 commented Sep 10, 2025

Proposed change

Improve the addon configuration UI for complex configuration schemas by reusing the existing infrastructure for Object selectors.

  • Display top-level dict fields as expandable sections instead of falling back to the YAML editor.
  • Display a reorderable list for list[dict] instead of falling back to the YAML editor.
  • Display a nested editor for nested dict instead of falling back to the YAML editor.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Based on addons/mosquitto/config.yaml:

options:
  logins: []
  customize:
    active: false
    folder: mosquitto
schema:
  logins:
    - username: str
      password: password
      password_pre_hashed: "bool?"
  customize:
    active: bool
    folder: str

Screenshots

Lists of objects (list[dict])

Expandable sections (top-level dict)

Additional information

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@github-actions github-actions bot added the Supervisor Related to the supervisor panel label Sep 10, 2025
@cr7pt0gr4ph7 cr7pt0gr4ph7 changed the title Addon config forms Improve addon configuration UI Sep 10, 2025
cr7pt0gr4ph7 added a commit to cr7pt0gr4ph7/home-assistant-supervisor that referenced this pull request Sep 10, 2025
cr7pt0gr4ph7 added a commit to cr7pt0gr4ph7/home-assistant-supervisor that referenced this pull request Sep 10, 2025
cr7pt0gr4ph7 added a commit to cr7pt0gr4ph7/developers.home-assistant that referenced this pull request Sep 10, 2025
@bramkragten bramkragten self-assigned this Sep 15, 2025
agners pushed a commit to home-assistant/supervisor that referenced this pull request Sep 16, 2025
Copy link
Member

@piitaya piitaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @cr7pt0gr4ph7 👍

@piitaya piitaya merged commit 3889d71 into home-assistant:dev Sep 23, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Supervisor Related to the supervisor panel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants