Skip to content

Add paste above/below buttons in automation editor#51495

Open
MikeDev96 wants to merge 1 commit intohome-assistant:devfrom
MikeDev96:paste-before-after
Open

Add paste above/below buttons in automation editor#51495
MikeDev96 wants to merge 1 commit intohome-assistant:devfrom
MikeDev96:paste-before-after

Conversation

@MikeDev96
Copy link
Copy Markdown

Proposed change

This PR adds "Paste above" and "Paste below" options to the context menu on trigger, condition & action rows in the automation editor.

Currently, pasting via the UI always appends due to the location of the "Add *" button, requiring the user to then drag the item to the correct position. This change allows direct pasting relative to any existing items which makes it much easier to build and reorganise complex scripts/automations.

This is especially beneficial for new users who may not be familiar with the existing cut/paste keyboard shortcuts (which only appends).

Screenshots

before     after

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:
  • Link to developer documentation pull request:
  • Link to backend pull request:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

To help with the load of incoming pull requests:

Copy link
Copy Markdown

@home-assistant home-assistant bot left a comment

Choose a reason for hiding this comment

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

Hi @MikeDev96

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 April 9, 2026 21:06
@home-assistant
Copy link
Copy Markdown

home-assistant bot commented Apr 9, 2026

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.

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