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

Android auto: Switch to GridTemplate for home screen and default to favorites if defined #3694

Merged
merged 16 commits into from
Jul 27, 2023

Conversation

dshokouhi
Copy link
Member

@dshokouhi dshokouhi commented Jul 21, 2023

Summary

The default home screen now uses GridTemplate instead of ListTemplate to allow for more domains and buttons to be shown. My Subaru has a giant 11" screen, ListTemplate shows a total of 10 items but GridTemplate shows 15 before needing to scroll.

When favorites are defined we will now show the entity grid screen with the user defined favorites. We will also add Navigation, All entities and Change servers (if applicable) to the grid view.

If favorites are defined but user has multiple servers they will continue to see all domains listed

Screenshots

image

image

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#964

Any other notes

@dshokouhi dshokouhi changed the title Android auto: default to favorites if defined Android auto: Switch to GridTemplate for home screen and default to favorites if defined Jul 21, 2023
Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

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

The functionality works (great improvement IMO!), but the code is like spaghetti going back and forth between EntityGridVehicleScreen and MainVehicleScreen and hard to understand. Added a few suggestions that I think will make it easier to follow.

Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

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

I believe this is the best it can be without larger architecture changes. Thanks for your patience, great feature!

@dshokouhi
Copy link
Member Author

I believe this is the best it can be without larger architecture changes.

Agreed, lets try to take those on in future PRs :)

Thanks for your patience, great feature!

Thanks for your time reviewing :)

@dshokouhi dshokouhi linked an issue Jul 27, 2023 that may be closed by this pull request
@JBassett JBassett merged commit 4069d29 into home-assistant:master Jul 27, 2023
3 checks passed
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.

Selection of domains to be dispayed in Android Auto
3 participants