-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
modbus light documentation for color temperature and brightness #37973
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
add documentation for new functions to work with color temperature and brightness [core PR](home-assistant/core#139703)
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
sorry if i have mistakes with branch, i don`t have a lot experience with github |
📝 WalkthroughWalkthroughThe pull request updates the Modbus integration documentation by introducing four new parameters to the Changes
🪧 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/modbus.markdown (2)
1242-1261
: New Light Parameters Added
The documentation now includes thebrightness
,color_temp
,min_temp
, andmax_temp
parameters in the lights configuration. The descriptions, default values, and types are clearly specified and consistent with other parameters.
Suggestion: If these defaults are meant to indicate an unset value, consider usingnull
instead ofNone
to align with typical YAML conventions, unless usingNone
is an intentional choice.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
1242-1242: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
1242-1242
: Remove Trailing Whitespace
Static analysis flagged trailing whitespace on this line (MD009). Please remove any extra spaces at the end of line 1242.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
1242-1242: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/modbus.markdown
(2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/modbus.markdown
1242-1242: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
⏰ 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/modbus.markdown (1)
1336-1352
: Review Light Configuration Examples
The example YAML for light entities now includes the new attributes (brightness
,color_temp
,min_temp
, andmax_temp
). However, note that for entities like"light2"
and"light4"
, theverify:
key is present without any nested configuration. Please confirm if an emptyverify
is intended or if additional verification parameters should be provided.
done |
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, @DioSWolF 👍
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/modbus.markdown (2)
1242-1261
: New light entity parameters for enhanced color control.
The documentation now introduces four new parameters for light entities—brightness_address
,color_temp_address
,min_temp
, andmax_temp
—each accompanied by clear descriptions, default values, and type specifications. Please verify that usingNone
as the default for the address fields is consistent with the conventions used elsewhere in the documentation. Additionally, consider including a reference (e.g., a link to PR 37973) so that users can quickly access the related core pull request for further context on these changes.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
1242-1242: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
1242-1242
: Remove trailing spaces.
A trailing space was detected at the end of thebrightness_address:
line. Please remove any extraneous whitespace to comply with markdown linting guidelines.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
1242-1242: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/modbus.markdown
(2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/modbus.markdown
1242-1242: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
⏰ 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
Proposed change
add documentation for new functions to work with color temperature and brightness
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
Summary by CodeRabbit
New Features
Documentation