-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Fixed bad example and missing options for set_swing_mode #39993
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
Bad example and incomplete list of options.
…ng-mode-fix Fixed bad example and missing options for set_swing_mode
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThe documentation for the Changes
Sequence Diagram(s)No sequence diagram generated as the changes are limited to documentation updates. 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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/climate.markdown (2)
216-216
: Add trailing pipe to appease markdownlint
MD055/table-pipe-style
complains because this row has no trailing|
. Since you modified it anyway, a one-character patch keeps the linter quiet and aligns with the suggested style:-| `swing_mode` | no | New value of swing mode: `off`, `horizontal`, `vertical` or `both`. +| `swing_mode` | no | New value of swing mode: `off`, `horizontal`, `vertical` or `both`. |
239-241
: Mirror the allowed-values hint for horizontal swingFor consistency, consider explicitly listing the valid options for
swing_horizontal_mode
, just as you now do forswing_mode
. Keeps the docs self-contained and saves users a trip to dev tools.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
📒 Files selected for processing (1)
source/_integrations/climate.markdown
(2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/climate.markdown
216-216: Table pipe style
Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe
(MD055, table-pipe-style)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (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/climate.markdown (1)
226-231
: Example now matches the documented options – LGTMUsing
swing_mode: both
in the sample automation aligns with the newly documented allowed values.
Proposed change
Fixed bad example and missing options for set_swing_mode.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
swing_mode
attribute in theclimate.set_swing_mode
action.swing_mode: both
for better clarity.