CarPlay sensor states fix + remove domains as default tab#4467
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the CarPlay experience by keeping entity state available across template/tab rebuilds (avoiding empty/placeholder displays) and updates the default CarPlay tab set to no longer include Domains by default.
Changes:
- Add “last known entity” caching in CarPlay Quick Access to keep entity rows populated when live cache data isn’t immediately available.
- Replay the latest selected-server and quick-access state snapshots when CarPlay templates are recreated or re-appeared, reducing UI “empty flash.”
- Update
CarPlayConfigdefaults to remove.domainsfrom the default tab list.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Sources/CarPlay/Templates/QuickAccess/CarPlayQuickAccessTemplate.swift | Adds last-known entity caching + pruning to stabilize Quick Access entity state display. |
| Sources/App/Settings/CarPlay/CarPlayConfig.swift | Removes .domains from the default tabs array for new CarPlay configs. |
| Sources/App/Scenes/CarPlaySceneDelegate.swift | Stores latest state snapshot + replays it when tabs/templates are rebuilt or revisited. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4467 +/- ##
=======================================
Coverage ? 42.24%
=======================================
Files ? 268
Lines ? 15759
Branches ? 0
=======================================
Hits ? 6657
Misses ? 9102
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Screenshots
Link to pull request in Documentation repository
Documentation: home-assistant/companion.home-assistant#
Any other notes