-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Template: cover: add description and type #38785
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
It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the |
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site 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.
I think the other properties have to be under keys:
📝 WalkthroughWalkthroughThe change updates the documentation for the template integration by restructuring the Changes
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/template.markdown
(1 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
description: Characteristics of a cover | ||
type: map |
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.
🛠️ Refactor suggestion
Add required: true
to the cover
section for consistency
The cover
block should declare whether it’s required, mirroring other entity sections (e.g., image
, button
, number
) which all include required: true
. Without this key, the schema may be unclear.
Proposed diff:
cover:
description: Characteristics of a cover
- type: map
+ required: true
+ type: map
If desired, you might also align the description with other sections (e.g., "List of covers") to maintain uniformity.
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
description: Characteristics of a cover | |
type: map | |
cover: | |
description: Characteristics of a cover | |
required: true | |
type: map |
this is targeted to |
oh, I see. Thank you for the catch! |
It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the |
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
♻️ Duplicate comments (1)
source/_integrations/template.markdown (1)
299-301
: Addrequired: true
to thecover
configuration section for consistencyOther entity sections (e.g.,
sensor
,button
,image
) explicitly declare whether they are required. Includingrequired: true
here makes it clear that acover
block must be provided and aligns with the schema of the other integrations.Apply this diff to insert
required: true
:cover: description: Characteristics of a cover + required: true type: map keys:
🧹 Nitpick comments (1)
source/_integrations/template.markdown (1)
302-348
: Check and correct inline anchor link fragmentsStatic analysis flagged the inline links to
#open_cover
,#close_cover
, and#set_cover_position
as invalid fragments. Please verify whether the rendered documentation generator uses underscores or hyphens in anchor IDs. If it uses hyphens, update these references (e.g.,#open-cover
) to prevent broken links in the final docs.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
303-303: Link fragments should be valid
null(MD051, link-fragments)
315-315: Link fragments should be valid
null(MD051, link-fragments)
315-315: Link fragments should be valid
null(MD051, link-fragments)
315-315: Link fragments should be valid
null(MD051, link-fragments)
315-315: Link fragments should be valid
null(MD051, link-fragments)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/template.markdown
(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/template.markdown
303-303: Link fragments should be valid
null
(MD051, link-fragments)
315-315: Link fragments should be valid
null
(MD051, link-fragments)
315-315: Link fragments should be valid
null
(MD051, link-fragments)
315-315: Link fragments should be valid
null
(MD051, link-fragments)
315-315: Link fragments should be valid
null
(MD051, link-fragments)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Lint Text
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
Proposed change
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
Summary by CodeRabbit
cover
configuration section.cover
configuration keys into a nested structure for improved clarity.