-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Use template for query in SQL #40345
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
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this 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 updates the SQL integration documentation to reflect a change where the query
configuration parameter now accepts templates instead of plain strings. This aligns the documentation with the corresponding code change in Home Assistant core that enables template functionality for SQL queries.
@@ -81,7 +81,7 @@ sql: | |||
query: | |||
description: An SQL QUERY string, should return 1 result at most. | |||
required: true | |||
type: string | |||
type: template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation should include an example of how to use templates in SQL queries and explain the benefits of this change, such as the ability to use dynamic values from Home Assistant state or attributes.
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @gjohansson-ST 👍
Proposed change
Change
query
from being a string to a template in SQL integrationType of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.