Skip to content

Check the settings row opens the Siri screen - #5682

Merged
bgoncal merged 1 commit into
mainfrom
cover-siri-settings-entry
Sep 7, 2026
Merged

Check the settings row opens the Siri screen#5682
bgoncal merged 1 commit into
mainfrom
cover-siri-settings-entry

Conversation

@bgoncal

@bgoncal bgoncal commented Sep 7, 2026

Copy link
Copy Markdown
Member

AI Policy

Select exactly one option that describes AI usage in this contribution:

  • I have not used AI for this contribution.
  • AI assistance was used for this contribution.
  • AI fully generated the code for this contribution, but I've reviewed and understood it before submitting and will respond without AI during review.

Summary

Follows #5674. The settings entry for Siri had no test covering the case that opens its screen, so removing it would leave a row that appears in settings and opens nothing.

Screenshots

Tests only.

Link to pull request in Documentation repository

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

Any other notes

No behaviour change.

Without that case the entry appears in settings and opens nothing.
Copilot AI lite review requested due to automatic review settings September 7, 2026 14:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The newly added test assertion is currently ineffective (it will always pass), so it won’t actually guard the intended regression.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a unit test to ensure the Settings “Siri” row actually navigates to a destination screen, protecting against regressions where the row remains visible but no longer opens a view.

Changes:

  • Add a new test intended to verify the Siri settings row opens a destination view.
File summaries
File Description
Tests/App/Utilities/SiriServerExposureTests.swift Adds a new test for the Siri settings entry destination wiring.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +89 to +93
/// The row has to lead somewhere: without that case the entry appears in settings and opens
/// nothing.
@MainActor @Test func theEntryOpensTheSiriScreen() {
#expect(!String(describing: SettingsItem.siri.destinationView).isEmpty)
}
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

⚠️ Unused L10n strings detected

Found 6 unused localization strings in the codebase.

Click to see details
Parsing Strings.swift...
Found 2815 L10n strings

Reading all Swift source code...
Read 11335968 characters of Swift code

Checking for unused strings...
Checked 100/2815 strings...
Checked 200/2815 strings...
Checked 300/2815 strings...
Checked 400/2815 strings...
Checked 500/2815 strings...
Checked 600/2815 strings...
Checked 700/2815 strings...
Checked 800/2815 strings...
Checked 900/2815 strings...
Checked 1000/2815 strings...
Checked 1100/2815 strings...
Checked 1200/2815 strings...
Checked 1300/2815 strings...
Checked 1400/2815 strings...
Checked 1500/2815 strings...
Checked 1600/2815 strings...
Checked 1700/2815 strings...
Checked 1800/2815 strings...
Checked 1900/2815 strings...
Checked 2000/2815 strings...
Checked 2100/2815 strings...
Checked 2200/2815 strings...
Checked 2300/2815 strings...
Checked 2400/2815 strings...
Checked 2500/2815 strings...
Checked 2600/2815 strings...
Checked 2700/2815 strings...
Checked 2800/2815 strings...

================================================================================
UNUSED STRINGS REPORT
================================================================================

Found 6 unused strings:


APPINTENTS:
  - L10n.AppIntents.ActiveEntities.Filter.climates
    Key: app_intents.active_entities.filter.climates
    Line: 297
  - L10n.AppIntents.ActiveEntities.Filter.covers
    Key: app_intents.active_entities.filter.covers
    Line: 299
  - L10n.AppIntents.ActiveEntities.Filter.fans
    Key: app_intents.active_entities.filter.fans
    Line: 301
  - L10n.AppIntents.ActiveEntities.Filter.locks
    Key: app_intents.active_entities.filter.locks
    Line: 305
  - L10n.AppIntents.ActiveEntities.Filter.mediaPlayers
    Key: app_intents.active_entities.filter.media_players
    Line: 307
  - L10n.AppIntents.ActiveEntities.Filter.switches
    Key: app_intents.active_entities.filter.switches
    Line: 311

================================================================================
Total unused: 6
================================================================================

================================================================================
Copy-paste these keys into the "Lokalise: Delete Keys" workflow (keys input):
================================================================================
app_intents.active_entities.filter.climates,app_intents.active_entities.filter.covers,app_intents.active_entities.filter.fans,app_intents.active_entities.filter.locks,app_intents.active_entities.filter.media_players,app_intents.active_entities.filter.switches

To remove them, run the
Lokalise: Delete Keys
workflow — it deletes the keys from Lokalise and opens a PR removing them from
Localizable.strings and regenerating Strings.swift. Copy-paste these keys into the keys input:

app_intents.active_entities.filter.climates,app_intents.active_entities.filter.covers,app_intents.active_entities.filter.fans,app_intents.active_entities.filter.locks,app_intents.active_entities.filter.media_players,app_intents.active_entities.filter.switches

@bgoncal
bgoncal enabled auto-merge (squash) September 7, 2026 14:36
@bgoncal
bgoncal merged commit 953efaf into main Sep 7, 2026
13 checks passed
@bgoncal
bgoncal deleted the cover-siri-settings-entry branch September 7, 2026 15:14
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.00%. Comparing base (2536e2a) to head (7b61efd).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5682      +/-   ##
==========================================
+ Coverage   38.86%   39.00%   +0.14%     
==========================================
  Files        1069     1073       +4     
  Lines       75564    75394     -170     
==========================================
+ Hits        29371    29411      +40     
+ Misses      46193    45983     -210     

see 58 files with indirect coverage changes

☔ View full report in Codecov by Harness.
📢 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.

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