mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 23:57:06 +00:00
Mark tag to be an entity component (#123200)
This commit is contained in:
parent
f51cc8fe12
commit
9c2ba9b157
@ -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__(
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
"entity": {
|
"entity_component": {
|
||||||
"tag": {
|
"_": {
|
||||||
"tag": {
|
"default": "mdi:tag-outline"
|
||||||
"default": "mdi:tag-outline"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user