Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Customize entity: add step to revert entity ID to default #39495

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

Open
wants to merge 6 commits into
base: current
Choose a base branch
from

Conversation

c0ffeeca7
Copy link
Contributor

@c0ffeeca7 c0ffeeca7 commented Jun 12, 2025

Proposed change

Customize entity:

  • add step to revert entity ID to default
  • update screenshots

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

  • Link to parent pull request in the codebase:
  • Link to parent pull request in the Brands repository:
  • This PR fixes or closes issue: fixes #

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Summary by CodeRabbit

  • Documentation
    • Improved instructions for customizing entity IDs, including how to undo changes and revert all entity IDs for a device.
    • Updated icon references for clarity and consistency.
    • Changed example entity ID for better illustration.
    • Added a new screenshot showing the revert all entity IDs option.

@home-assistant home-assistant bot added the current This PR goes into the current branch label Jun 12, 2025
Copy link

netlify bot commented Jun 12, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 6d77edf
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/684acabd995ccc00081f36af
😎 Deploy Preview https://deploy-preview-39495--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@c0ffeeca7 c0ffeeca7 marked this pull request as ready for review June 12, 2025 07:04
Copy link
Contributor

coderabbitai bot commented Jun 12, 2025

📝 Walkthrough

Walkthrough

The documentation for customizing device entity IDs was revised for clarity, updated with consistent icon syntax, and expanded with instructions on reverting entity ID changes. An example was changed, and a new screenshot was added to illustrate the process of reverting all entity IDs for a device.

Changes

File(s) Change Summary
source/_docs/configuration/customizing-devices.markdown Improved clarity, updated icon syntax, changed example entity ID, added instructions for undo/revert, and added a new screenshot.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation

    User->>Documentation: View instructions to customize entity IDs
    User->>Documentation: Follow steps to edit or revert entity IDs
    Documentation-->>User: Show updated steps with icons and screenshots
    User->>Documentation: Learn how to revert all entity IDs for a device
Loading

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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/_docs/configuration/customizing-devices.markdown (2)

19-19: Hyphenate compound adjective for consistency.
Consider updating “top right corner” to “top-right corner” to follow style guidelines for compound adjectives.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~19-~19: Consider adding a hyphen.
Context: ...ect the entity from the list. 2. In the top right corner, select the {% icon "mdi:cog" %}...

(TOP_LEFT_CORNER)


31-31: Normalize screenshot formatting.
The image block here is indented differently and the alt text isn’t capitalized. Align it with other screenshots and update the alt text:

-        ![revert all entity IDs for a device from the device page](/images/docs/configuration/device-page-revert-entity-id.png)
+   ![Revert all entity IDs for a device from the device page.](/images/docs/configuration/device-page-revert-entity-id.png)
📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 89c198f and bb1924d.

⛔ Files ignored due to path filters (3)
  • source/images/docs/configuration/customizing-entity-dialog.png is excluded by !**/*.png
  • source/images/docs/configuration/customizing-entity.png is excluded by !**/*.png
  • source/images/docs/configuration/device-page-revert-entity-id.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • source/_docs/configuration/customizing-devices.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_docs/configuration/customizing-devices.markdown

[uncategorized] ~19-~19: Consider adding a hyphen.
Context: ...ect the entity from the list. 2. In the top right corner, select the {% icon "mdi:cog" %}...

(TOP_LEFT_CORNER)

🔇 Additional comments (3)
source/_docs/configuration/customizing-devices.markdown (3)

24-24: Example entity ID update looks good.
The new example binary_sensor.lumi_sensor_aq2_opening is clear and fits the naming conventions.


28-28: Revert step instruction is clear.
The instruction to use the {% icon "mdi:restore" %} icon to undo ID changes is accurate and well-placed.


29-29: “Recreate entity IDs” step is accurate.
The new bullet explaining how to revert all IDs via the three-dots menu aligns with the UI and is helpful.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (1)
source/_docs/configuration/customizing-devices.markdown (1)

34-34: Fix grammatical error in friendly name example
The sentence is missing the noun and the preposition “to”.

Proposed diff:

-     - In this example, the would change "Opening".
+     - In this example, the friendly name would change to "Opening".
🧰 Tools
🪛 LanguageTool

[grammar] ~34-~34: Did you mean “they”, “that” or “there”?
Context: ... friendly name. - In this example, the would change "Opening". - If needed,...

(THE_THEY)

📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 8105533 and 30b0358.

📒 Files selected for processing (1)
  • source/_docs/configuration/customizing-devices.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_docs/configuration/customizing-devices.markdown

[grammar] ~34-~34: Did you mean “they”, “that” or “there”?
Context: ... friendly name. - In this example, the would change "Opening". - If needed,...

(THE_THEY)

⏰ 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 (5)
source/_docs/configuration/customizing-devices.markdown (5)

19-19: Explicit icon syntax for consistency
Using {% icon "mdi:cog" %} matches existing documentation conventions and ensures uniformity across guides.


24-24: Example entity ID updated correctly
The new ID binary_sensor.lumi_sensor_aq2_opening is clear, concise, and follows the naming rules.


28-28: Add instruction to revert to default entity ID
The bullet detailing the {% icon "mdi:restore" %} restore action clearly explains how to undo manual ID edits.


29-29: Add bulk revert option for device entities
The new step for Recreate entity IDs under the three dots menu accurately documents the bulk revert feature.


31-31: New screenshot for reverting all entity IDs
The added image illustrates the bulk revert workflow and aligns with Home Assistant’s visual style.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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/_docs/configuration/customizing-devices.markdown (2)

29-29: Improve screenshot alt text
Alt text should start with a capital letter and more clearly describe the visual:

- ![revert all entity IDs for a device from the device page](/images/docs/configuration/device-page-revert-entity-id.png)
+ ![Device page showing option to revert all entity IDs](/images/docs/configuration/device-page-revert-entity-id.png)

32-32: Fix grammar and missing text
The bullet is missing the subject and the preposition “to”:

-     - In this example, the would change "Opening".
+     - In this example, the friendly name would change to "Opening".
🧰 Tools
🪛 LanguageTool

[grammar] ~32-~32: Did you mean “they”, “that” or “there”?
Context: ... friendly name. - In this example, the would change "Opening". - If needed,...

(THE_THEY)

📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 30b0358 and 6d77edf.

📒 Files selected for processing (1)
  • source/_docs/configuration/customizing-devices.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_docs/configuration/customizing-devices.markdown

[grammar] ~32-~32: Did you mean “they”, “that” or “there”?
Context: ... friendly name. - In this example, the would change "Opening". - If needed,...

(THE_THEY)

🔇 Additional comments (4)
source/_docs/configuration/customizing-devices.markdown (4)

17-17: Explicit icon macro usage for clarity
Using {% icon "mdi:cog" %} ensures consistent syntax across documentation.


22-22: Updated example entity ID
The new example binary_sensor.lumi_sensor_aq2_opening is more descriptive and realistic.


26-26: Added instruction to revert single entity ID
Including the restore icon step improves user guidance for undoing ID changes.


27-27: Added instruction to revert all entity IDs
Documenting the Recreate entity IDs option on the device page covers a common use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
current This PR goes into the current branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant