Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example for using trigger.event.data.message due to syntax error #32774

Merged
merged 1 commit into from
May 21, 2024

Conversation

pjdubya
Copy link
Contributor

@pjdubya pjdubya commented May 14, 2024

trigger.event.data.message is received as a list (as evidenced by the condition that checks for data within the first element). Following the example as it currently is generates the following error, which this change will now mitigate.

template value should be a string for dictionary value @ data['message']

Proposed change

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

  • Link to parent pull request in the codebase:
  • Link to parent pull request in the Brands repository:
  • This PR fixes or closes issue: fixes #

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.

trigger.event.data.message is received as a list (as evidenced by the condition that checks for data within the first element). Following the example as it currently is generates the following error, which this change will now mitigate.

template value should be a string for dictionary value @ data['message']
@home-assistant home-assistant bot added the current This PR goes into the current branch label May 14, 2024
Copy link

netlify bot commented May 14, 2024

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 28eb11c
🔍 Latest deploy log https://app.netlify.com/sites/home-assistant-docs/deploys/6643ec0bd03c520008088afc
😎 Deploy Preview https://deploy-preview-32774--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 site configuration.

Copy link
Contributor

@c0ffeeca7 c0ffeeca7 left a comment

Choose a reason for hiding this comment

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

Thank you for the catch, @pjdubya 👍

@c0ffeeca7 c0ffeeca7 merged commit af90d14 into home-assistant:current May 21, 2024
6 checks passed
@pjdubya pjdubya deleted the patch-2 branch May 21, 2024 17:27
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
current This PR goes into the current branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants