-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Add-on configuration/option #2640
Comments
|
We should only allow supported types `"type": "string" which is handled by backend. I think the format like the UI use to nest things should be good. |
We don't process or store not validated content on the supervisor. How it works currently is perfect, just not good for making a nice UI |
This comment has been minimized.
This comment has been minimized.
It would be great to have conditional options in the future and give the
Or is there already a method to achieve the same result. |
For the UI we now use the same selectors as blueprint/config_flow/services. schema:
config_key:
text:
type: url
packages:
select:
custom_value: true
multiple: true And we can then send that like |
This need today an improvement from our UI team with using selectors as well |
Selectors are already supported in that UI. |
Hi, I stumbled across this thread because I am looking for a solution for nested schema.
Do I understand correctly, the new “configuration:” would bring support for nested options. But as it is in "open" stage it is not yet implemented and usable? |
Another issue with the current add-on config UI is that it doesn't show unused optional configuration options grayed out, but shows them as false or empty, leading to lot of user complaints and wasted hours figuring out what is going on. Example:
|
Context
The current schema/options are going to limit how we can build the UI around.
Decision
We merge options and schema into a new
configuration
format:Nested object:
Translation and keys
translations/en.json
We can use the current UI generator to create a migration class for the old format for being backwards compatible.
The text was updated successfully, but these errors were encountered: