-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add default values for script fields in more-info dialog #20747
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
this._scriptData = { service: newState.entity_id, data: {} }; | ||
const fields = | ||
this.hass.services.script[computeObjectId(newState.entity_id)]?.fields; | ||
const defaultValues = {}; |
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.
I think we should use computeInitialHaFormData here.
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
Proposed change
Previously, the more-info dialog for script entities didn't show the user-defined default values for the script fields, this PR fixes this.
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: