Skip to content

Add hide_states option to state selector #40050

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 2 commits into
base: next
Choose a base branch
from

Conversation

piitaya
Copy link
Member

@piitaya piitaya commented Jul 17, 2025

Proposed change

Add hide_states option to state selector

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

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.

@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 16:29
@piitaya piitaya added the awaits-parent Awaits the merge of an parent PR label Jul 17, 2025
@home-assistant home-assistant bot added has-parent This PR has a parent PR in another repo next This PR goes into the next branch labels Jul 17, 2025
Copy link

netlify bot commented Jul 17, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 81926c7
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/68792c59a8e4ac00085d1570
😎 Deploy Preview https://deploy-preview-40050--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.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds the new hide_states configuration option to the state selector in blueprint documentation, allowing authors to exclude specific state values from the dropdown.

  • Introduces hide_states under state selector configuration
  • Defines its description, type, and optionality
  • Keeps existing formatting consistent with other selector options
Comments suppressed due to low confidence (1)

source/_docs/blueprint/selectors.markdown:1421

  • Clarify that hide_states expects a list of state strings and specify the default behavior when omitted. For example:

    description: "List of state values to exclude from the selector (default: [])."

  description: The states to exclude from the list of options

Copy link
Contributor

@c0ffeeca7 c0ffeeca7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @piitaya 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaits-parent Awaits the merge of an parent PR has-parent This PR has a parent PR in another repo next This PR goes into the next branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy