Skip to content

Simplify list selection#3148

Merged
balloob merged 8 commits intohome-assistant:devfrom
elupus:simplify_list_selection
May 2, 2019
Merged

Simplify list selection#3148
balloob merged 8 commits intohome-assistant:devfrom
elupus:simplify_list_selection

Conversation

@elupus
Copy link
Copy Markdown
Contributor

@elupus elupus commented May 2, 2019

This is a simplification of listbox selected usage.

By using attr-for-selected and listening for the on-selected-changed property, the extra
property used for selected item can fully be dropped.

The first stage commits in this pull contain the same approach previously added by just avoiding the index usage. But i think the full change make more sense.

@elupus
Copy link
Copy Markdown
Contributor Author

elupus commented May 2, 2019

This is an even better method of: #3136. I can add media_player here too i think.

@elupus elupus force-pushed the simplify_list_selection branch from 999a464 to f94d8f7 Compare May 2, 2019 10:41
@elupus elupus force-pushed the simplify_list_selection branch from f94d8f7 to dcd9b99 Compare May 2, 2019 10:44
Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

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

Awesome!

@balloob balloob merged commit 8a86dd8 into home-assistant:dev May 2, 2019
@balloob balloob mentioned this pull request May 2, 2019
@elupus elupus mentioned this pull request May 3, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants