Skip to content

Add labels to Transmission add_torrent service and events#42742

Merged
joostlek merged 6 commits into
home-assistant:nextfrom
andrew-codechimp:transmission-labels
Dec 29, 2025
Merged

Add labels to Transmission add_torrent service and events#42742
joostlek merged 6 commits into
home-assistant:nextfrom
andrew-codechimp:transmission-labels

Conversation

@andrew-codechimp
Copy link
Copy Markdown
Contributor

Proposed change

Adds documentation of new optional labels field on add_torrent action.
Amend the event documentation to include the labels field.
Update example automation using the new labels field, also changed to use built in persistent notification to make it beginner friendly.

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Copilot AI review requested due to automatic review settings December 26, 2025 15:07
@home-assistant home-assistant Bot added has-parent This PR has a parent PR in another repo next This PR goes into the next branch labels Dec 26, 2025
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 26, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit bd7da6d
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/694fd6c75da686000881dc16
😎 Deploy Preview https://deploy-preview-42742--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

This PR documents the new optional labels field for the Transmission integration's add_torrent action and updates event documentation to reflect that labels are included in events. The automation example has been modernized to demonstrate the labels functionality while making it more beginner-friendly by using persistent notifications.

Key changes:

  • Added labels parameter documentation to the add_torrent action
  • Updated event automation description to mention labels are included in event data
  • Replaced the previous automation example with an updated version that demonstrates label filtering and uses built-in persistent notifications

Comment thread source/_integrations/transmission.markdown Outdated
Comment thread source/_integrations/transmission.markdown Outdated
Comment on lines +98 to +101
message: >-
{{trigger.event.data.name}} downloaded to
{{trigger.event.data.download_path}} with labels
{{trigger.event.data.labels}}
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

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

The multi-line string in the template exceeds 80 characters per line. According to the documentation guidelines, contents of code fenced blocks must not exceed 80 characters per line. The message template should be reformatted to keep lines within this limit while maintaining readability.

Copilot generated this review using guidance from repository custom instructions.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is correct

Comment thread source/_integrations/transmission.markdown Outdated
Comment on lines +103 to +104
- condition: template
value_template: "{{ 'remove' in trigger.event.data.labels }}"
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

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

According to the YAML style guide, when a property accepts a single mapping or a list of mappings, a list of mappings must be used. The condition should be formatted as a list with a dash prefix for consistency with Home Assistant automation standards.

Copilot generated this review using guidance from repository custom instructions.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is correct

Comment thread source/_integrations/transmission.markdown Outdated
@home-assistant home-assistant Bot added the parent-merged The parent PR has been merged already label Dec 29, 2025
@joostlek joostlek merged commit 03f13e6 into home-assistant:next Dec 29, 2025
7 checks passed
@home-assistant home-assistant Bot removed the parent-merged The parent PR has been merged already label Dec 29, 2025
@andrew-codechimp andrew-codechimp deleted the transmission-labels branch December 29, 2025 15:08
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

has-parent This PR has a parent PR in another repo next This PR goes into the next branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants