Skip to content

Remove the icon for notification actions#6821

Merged
TimoPtr merged 5 commits into
home-assistant:mainfrom
ChadKillingsworth:feature/action-icon-null
Jun 1, 2026
Merged

Remove the icon for notification actions#6821
TimoPtr merged 5 commits into
home-assistant:mainfrom
ChadKillingsworth:feature/action-icon-null

Conversation

@ChadKillingsworth

Copy link
Copy Markdown

Summary

The icon only shows on Android Auto and in the Head's Up view, completely replaces the action title.

PXL_20260503_191217585

After the change, the action title correctly shows up:

Screenshot 2026-05-08 at 9 00 50 AM

Local testing demonstrated that setting a custom icon as requested in #6736 had the same effect as setting the icon to null - the custom icon did not show.

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

Screenshots

See screenshots above. The change should have no effect between light and dark mode.

Link to pull request in documentation repositories

Because custom icons were not supported already, no changes to documentation should be needed.

The icon only shows on Android Auto and in the Head's Up view, completely replaces the action title.
Copilot AI review requested due to automatic review settings May 8, 2026 17:02

@home-assistant home-assistant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @ChadKillingsworth

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant home-assistant Bot marked this pull request as draft May 8, 2026 17:02
@home-assistant

home-assistant Bot commented May 8, 2026

Copy link
Copy Markdown

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

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.

Pull request overview

This PR adjusts how notification action buttons are built so that action titles remain visible (not replaced by an icon) in Android Auto and heads-up notifications.

Changes:

  • Remove the icon from “regular” notification actions by building the action with a null icon.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ChadKillingsworth ChadKillingsworth marked this pull request as ready for review May 8, 2026 21:54
@home-assistant home-assistant Bot dismissed their stale review May 8, 2026 21:54

Stale

@ChadKillingsworth

Copy link
Copy Markdown
Author

I'm concerned that wear OS requires an icon and that this change, while beneficial to Android Auto, will negatively impact watches.

@jpelgrom

jpelgrom commented May 9, 2026

Copy link
Copy Markdown
Member

I'm concerned that wear OS requires an icon and that this change, while beneficial to Android Auto, will negatively impact watches.

Wear OS 3+ doesn't show notification action icons in the default and Samsung skins as far as I'm aware. Is there a specific reason for your concern?

@ChadKillingsworth

Copy link
Copy Markdown
Author

My concern was just unfamiliarity with that device type and light research on the subject.

@jpelgrom

Copy link
Copy Markdown
Member

Sorry for the delay. Tested with Android Auto and Wear OS, as well as a 'normal' device, and the change looks good.

Could you rebase the branch or merge the latest changes so we can get CI to pass? The "Instrumentation Test app" check will currently fail but was recently fixed for forks.

@TimoPtr TimoPtr enabled auto-merge (squash) June 1, 2026 13:00
@jpelgrom jpelgrom disabled auto-merge June 1, 2026 13:26
@jpelgrom jpelgrom enabled auto-merge (squash) June 1, 2026 13:26
@TimoPtr TimoPtr disabled auto-merge June 1, 2026 13:47
@TimoPtr TimoPtr merged commit 9712a55 into home-assistant:main Jun 1, 2026
33 of 35 checks passed
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.

Request: Notification_Icon for actions on Android Auto(motive)

6 participants