-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix rendering problems on Music Assistant page #38674
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
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe documentation for the Music Assistant integration has been updated to modify the formatting of YAML script examples. Specifically, the Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
source/_integrations/music_assistant.markdown (2)
223-224
: Improve Clarity of Jinja Raw Tag Placement
Wrapping the entiremedia_id
line in{% raw %}
/{% endraw %}
works, but relocating the raw markers to surround only the Jinja expression keeps indentation clean and improves readability. For example:data: - {% raw %} - media_id: "{{ random_tracks['items'] | map(attribute='uri') | list }}" {% endraw %} + media_id: {% raw %}"{{ random_tracks['items'] | map(attribute='uri') | list }}"{% endraw %} media_type: track enqueue: replace
256-257
: Consolidate Raw Tags Around the Jinja Value
Currently the raw block is opened at the end of theentity_id
line, which can be confusing. It’s clearer to leaveentity_id
untouched and wrap only the templatedvalue
:data: - entity_id: input_text.now_playing {% raw %} - value: "{{ queue_info['media_player.ma_kitchen_speaker'].current_item.name }}" {% endraw %} + entity_id: input_text.now_playing + value: {% raw %}"{{ queue_info['media_player.ma_kitchen_speaker'].current_item.name }}"{% endraw %}This keeps the raw directive focused on the Jinja expression and maintains valid YAML indentation.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/music_assistant.markdown
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (1)
source/_integrations/music_assistant.markdown (1)
223-224
: AI Summary Mismatch: Inline vs Multi-line Mapping
The AI-generated summary says thedata
blocks were converted to single-line inline mappings, but the actual diff shows they remain multi-line mappings with{% raw %}
/{% endraw %}
wrapping themedia_id
line. Please update the summary to accurately reflect the change or adjust the snippet to use an inline mapping if that was the intent.Likely an incorrect or invalid review comment.
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, @OzGav 👍
Proposed change
Recent update to the docs has some rendering issues with the templates. This will hopefully fix those.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit