Skip to content

Rename live activity webhook types to drop mobile_app_ prefix#4585

Draft
rwarner wants to merge 2 commits into
home-assistant:mainfrom
rwarner:fix/live-activity-webhook-names
Draft

Rename live activity webhook types to drop mobile_app_ prefix#4585
rwarner wants to merge 2 commits into
home-assistant:mainfrom
rwarner:fix/live-activity-webhook-names

Conversation

@rwarner
Copy link
Copy Markdown
Contributor

@rwarner rwarner commented Apr 29, 2026

Summary

  • Renames webhookTypeToken from "mobile_app_live_activity_token""live_activity_token"
  • Renames webhookTypeDismissed from "mobile_app_live_activity_dismissed""live_activity_dismissed"

Requested in home-assistant/core#166072 — all other webhooks in the mobile_app integration use short names without the mobile_app_ prefix (e.g. scan_tag, update_location). This aligns our new webhook types with that convention.

Related

🤖 Generated with Claude Code

Part of epic: home-assistant/epics#61
Fixes: #4623

Aligns with home-assistant/core#166072 where the webhook handlers were
renamed from mobile_app_live_activity_token/dismissed to
live_activity_token/dismissed to match the naming convention of all other
webhooks in the mobile_app integration (none of which carry the prefix).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rwarner rwarner force-pushed the fix/live-activity-webhook-names branch from d59a7ff to 4faadd4 Compare April 29, 2026 16:33
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

Renames the Live Activity webhook type strings sent from the iOS app to Home Assistant so they follow the existing mobile_app integration convention (short names without the mobile_app_ prefix).

Changes:

  • Update LiveActivityRegistry.webhookTypeToken to "live_activity_token".
  • Update LiveActivityRegistry.webhookTypeDismissed to "live_activity_dismissed".

Comment thread Sources/Shared/LiveActivity/LiveActivityRegistry.swift
Comment thread Sources/Shared/LiveActivity/LiveActivityRegistry.swift
Follows the rename in LiveActivityRegistry.swift from mobile_app_live_activity_*
to live_activity_* to stay consistent with HA core's webhook naming convention.

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

codecov Bot commented Apr 29, 2026

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4585   +/-   ##
=======================================
  Coverage        ?   43.24%           
=======================================
  Files           ?      275           
  Lines           ?    16700           
  Branches        ?        0           
=======================================
  Hits            ?     7222           
  Misses          ?     9478           
  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.

Copy link
Copy Markdown
Member

@bgoncal bgoncal left a comment

Choose a reason for hiding this comment

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

Let's wait for the other PRs to merge it in sync this time

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.

Live updates - main feature

3 participants