-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
Add label support #69996
Add label support #69996
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
You're on 🔥 ! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
6b7be04
to
e2078f4
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
vol.Optional(ATTR_LABEL_ID): vol.Any( | ||
ENTITY_MATCH_NONE, vol.All(ensure_list, [vol.Any(dynamic_template, str)]) | ||
), |
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.
Nice, this will be awesome! 🚀 🎉
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
fa6478c
to
fe6bd6f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
d7c42a7
to
b2f0cdd
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
04eb18b
to
e3b5548
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
@frenck any plans to pick this PR up after summer ? Not that I am qualified but if there is any scut work I can do to help facilitate it I would be more then happy to volunteer |
@johntdyer There is nothing to pick up on on this PR. The ball is currently in the part of the UX team. ../Frenck |
This comment was marked as resolved.
This comment was marked as resolved.
c2d22b1
to
e830c41
Compare
Squashed all commits, to make it easier to get this thing rebased onto the latest dev |
e830c41
to
13071c1
Compare
0b06042
to
a482d23
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
Add label support to device registry Add label support to entity registry Add support for calling services by labels Rebase fixes, test fixes, linter fixes, catch up Ran black Update test snapshosts Update snapshots for renault Register API Fix entity registry tests Set up registry in bootstrap Add labels to partial dict Add support to Syrupy for test snapshotting Adjust more tests Adjust version in comment Update snapshots Add template methods
a482d23
to
284fc94
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Closing this one, splitting it up in multiple smaller PRs |
Proposed change
This PR adds label support to Home Assistant. Labels are similar to Areas.
Areas allow one to categorize devices and data points into physical locations matching your Home. Labels provide the non-physical categorization.
An item can only be in a single area at the time (as it can be in one physical location at the time); With labels, however, multiple can be assigned. Areas can be suggested by the integration/device, labels cannot. Areas have cards and physical room representations in terms of cards on Dashboards (room cards for example), labels have not as they have a different meaning.
Inspiration, at this point, comes from GitHub Labels:
And from Material Design chips:
PS: The name "labels" is chosen instead of "tags". This is prevent naming conflicts/confusion with the existing "tags".
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: