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.""" """Representation of a Tag entity."""
_unrecorded_attributes = frozenset({TAG_ID}) _unrecorded_attributes = frozenset({TAG_ID})
_attr_translation_key = DOMAIN
_attr_should_poll = False _attr_should_poll = False
def __init__( def __init__(

View File

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

View File

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

View File

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

View File

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