Mark tag to be an entity component (#123200)

This commit is contained in:
Franck Nijhof 2024-08-05 20:40:44 +02:00 committed by GitHub
parent f51cc8fe12
commit 9c2ba9b157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 21 deletions

View File

@ -364,7 +364,6 @@ class TagEntity(Entity):
"""Representation of a Tag entity."""
_unrecorded_attributes = frozenset({TAG_ID})
_attr_translation_key = DOMAIN
_attr_should_poll = False
def __init__(

View File

@ -1,9 +1,7 @@
{
"entity": {
"tag": {
"tag": {
"default": "mdi:tag-outline"
}
"entity_component": {
"_": {
"default": "mdi:tag-outline"
}
}
}

View File

@ -3,5 +3,6 @@
"name": "Tags",
"codeowners": ["@balloob", "@dmulcahey"],
"documentation": "https://www.home-assistant.io/integrations/tag",
"integration_type": "entity",
"quality_scale": "internal"
}

View File

@ -1,15 +1,13 @@
{
"title": "Tag",
"entity": {
"tag": {
"tag": {
"state_attributes": {
"tag_id": {
"name": "Tag ID"
},
"last_scanned_by_device_id": {
"name": "Last scanned by device ID"
}
"entity_component": {
"_": {
"state_attributes": {
"tag_id": {
"name": "Tag ID"
},
"last_scanned_by_device_id": {
"name": "Last scanned by device ID"
}
}
}

View File

@ -6002,10 +6002,6 @@
"config_flow": true,
"iot_class": "cloud_polling"
},
"tag": {
"integration_type": "hub",
"config_flow": false
},
"tailscale": {
"name": "Tailscale",
"integration_type": "hub",
@ -7354,7 +7350,6 @@
"shopping_list",
"sun",
"switch_as_x",
"tag",
"threshold",
"time_date",
"tod",