-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Add fields and multiple support to object selector #147215
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
Conversation
} | ||
}, | ||
vol.Optional("multiple", default=False): bool, | ||
vol.Optional("label_field"): str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like we might miss some checks? Or is the respective optional field here really optional even when another one has been set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can define fields
and the first field will be used as label if this one it not defined.
Co-authored-by: G Johansson <[email protected]>
str: { | ||
vol.Required("selector"): dict, | ||
vol.Optional("required"): bool, | ||
vol.Optional("label"): str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we drop label
since we have translation_key
already? or do we need to support both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Label is here because blueprints can not use translation key.
Proposed change
Backend support for new options in object selector.
It will first be used to improve the
answers
editor (#147219)Type of change
Additional information
fields
andmultiple
support to object selector frontend#25843Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: