Skip to content

Remove end_live_activity command#4616

Open
rwarner wants to merge 2 commits intohome-assistant:mainfrom
rwarner:fix/remove-end-live-activity-command
Open

Remove end_live_activity command#4616
rwarner wants to merge 2 commits intohome-assistant:mainfrom
rwarner:fix/remove-end-live-activity-command

Conversation

@rwarner
Copy link
Copy Markdown
Contributor

@rwarner rwarner commented May 7, 2026

Summary

  • Removes HandlerEndLiveActivity and its registration in NotificationCommandManager
  • clear_notification with a tag already ends Live Activities via HandlerClearNotification — no separate command needed
  • Aligns iOS with Android, which uses clear_notification exclusively

Companion docs PR: home-assistant/companion.home-assistant#1303

Test plan

  • Send a live_update: true notification to start a Live Activity
  • Send clear_notification with the same tag — activity ends correctly
  • Confirm no regression on standard notification clearing

🤖 Generated with Claude Code

clear_notification with a tag already ends Live Activities via
HandlerClearNotification, making end_live_activity redundant.
Removes HandlerEndLiveActivity and its registration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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

Removes the dedicated end_live_activity notification command from the iOS app, relying on the existing clear_notification + tag path to end Live Activities (aligning iOS behavior with Android).

Changes:

  • Unregisters the "end_live_activity" command from NotificationCommandManager.
  • Deletes HandlerEndLiveActivity implementation from the Live Activity command handler file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Sources/Shared/Notifications/NotificationCommands/NotificationsCommandManager.swift Removes registration for the deprecated end_live_activity command.
Sources/Shared/Notifications/NotificationCommands/HandlerLiveActivity.swift Removes the now-unused HandlerEndLiveActivity command handler type.

Drops HandlerEndLiveActivityTests and all end_live_activity routing
tests. clear_notification with a tag covers the dismissal path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4616   +/-   ##
=======================================
  Coverage        ?   43.77%           
=======================================
  Files           ?      278           
  Lines           ?    16915           
  Branches        ?        0           
=======================================
  Hits            ?     7405           
  Misses          ?     9510           
  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.

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.

3 participants