Set Analytics Insights as diagnostic (#109702)
* Set Analytics Insights as diagnostic * Set Analytics Insights as diagnosticpull/109737/head
parent
ebda0472e9
commit
3bcd367b65
|
@ -10,6 +10,7 @@ from homeassistant.components.sensor import (
|
|||
SensorStateClass,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import EntityCategory
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
@ -93,6 +94,7 @@ class HomeassistantAnalyticsSensor(
|
|||
"""Home Assistant Analytics Sensor."""
|
||||
|
||||
_attr_has_entity_name = True
|
||||
_attr_entity_category = EntityCategory.DIAGNOSTIC
|
||||
|
||||
entity_description: AnalyticsSensorEntityDescription
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'sensor.homeassistant_analytics_hacs_custom',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
|
@ -59,7 +59,7 @@
|
|||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'sensor.homeassistant_analytics_myq',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
|
@ -106,7 +106,7 @@
|
|||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'sensor.homeassistant_analytics_spotify',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
|
@ -153,7 +153,7 @@
|
|||
'device_id': <ANY>,
|
||||
'disabled_by': None,
|
||||
'domain': 'sensor',
|
||||
'entity_category': None,
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'sensor.homeassistant_analytics_youtube',
|
||||
'has_entity_name': True,
|
||||
'hidden_by': None,
|
||||
|
|
Loading…
Reference in New Issue