Skip to content

CarPlay sensor states fix + remove domains as default tab#4467

Merged
bgoncal merged 3 commits intomainfrom
carplay-sensor-fix
Apr 1, 2026
Merged

CarPlay sensor states fix + remove domains as default tab#4467
bgoncal merged 3 commits intomainfrom
carplay-sensor-fix

Conversation

@bgoncal
Copy link
Copy Markdown
Member

@bgoncal bgoncal commented Apr 1, 2026

Summary

Screenshots

Link to pull request in Documentation repository

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

Any other notes

@bgoncal bgoncal self-assigned this Apr 1, 2026
@bgoncal bgoncal added the CarPlay label Apr 1, 2026
Copilot AI review requested due to automatic review settings April 1, 2026 08:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 CarPlayConfig defaults to remove .domains from 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.

Comment thread Sources/App/Scenes/CarPlaySceneDelegate.swift
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@3613bb8). Learn more about missing BASE report.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bgoncal bgoncal merged commit 38ef80d into main Apr 1, 2026
15 checks passed
@bgoncal bgoncal deleted the carplay-sensor-fix branch April 1, 2026 09:47
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.

2 participants