Skip to content
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

Fix editing service button widget shows/creates incorrect field values #2651

Merged
merged 3 commits into from
Jul 1, 2022

Conversation

jpelgrom
Copy link
Member

Summary

Fixes #2604 and visual issues for the service fields

These fixes don't really relate to the changes included in the version I mentioned in the issue, but were mainly caused by race conditions/re-use of resources so I'm going to blame it on the app got faster 🙂

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

jpelgrom added 3 commits June 30, 2022 21:34
 - The text changed listener might be called while the button widget fields were being setup if a value exists. If other fields are bound at the same time this might overwrite their values and cause problems, so make sure to use the adapter position for the viewholder instead.
 - If setting a value fails set the text input to empty instead of showing the previous value
 - Properly set the hint for the button widget fields to null if no hint is available to prevent an old hint from being visible
 - Properly set the autocomplete functionality to null if no autocomplete functionality is expected to prevent unwanted autocompletion
 - Always load the full services list, even if a service was previously selected, and apply a filter on the list after setting it to prevent the dropdown from showing incorrect values
@JBassett JBassett merged commit 0fe14ca into home-assistant:master Jul 1, 2022
@jpelgrom jpelgrom deleted the fix-button-widget-editing branch July 1, 2022 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editing service button widget might change/break service call
3 participants