mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Enable slowly-changing, important diagnostics for connected devices by default (#134776)
This commit is contained in:
parent
20d6ba4286
commit
19f460614e
@ -47,18 +47,21 @@ SENSOR_TYPES = {
|
|||||||
key="type",
|
key="type",
|
||||||
translation_key="link_type",
|
translation_key="link_type",
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
"link_rate": SensorEntityDescription(
|
"link_rate": SensorEntityDescription(
|
||||||
key="link_rate",
|
key="link_rate",
|
||||||
translation_key="link_rate",
|
translation_key="link_rate",
|
||||||
native_unit_of_measurement="Mbps",
|
native_unit_of_measurement="Mbps",
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
"signal": SensorEntityDescription(
|
"signal": SensorEntityDescription(
|
||||||
key="signal",
|
key="signal",
|
||||||
translation_key="signal_strength",
|
translation_key="signal_strength",
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
"ssid": SensorEntityDescription(
|
"ssid": SensorEntityDescription(
|
||||||
key="ssid",
|
key="ssid",
|
||||||
@ -69,6 +72,7 @@ SENSOR_TYPES = {
|
|||||||
key="conn_ap_mac",
|
key="conn_ap_mac",
|
||||||
translation_key="access_point_mac",
|
translation_key="access_point_mac",
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,8 +330,6 @@ async def async_setup_entry(
|
|||||||
class NetgearSensorEntity(NetgearDeviceEntity, SensorEntity):
|
class NetgearSensorEntity(NetgearDeviceEntity, SensorEntity):
|
||||||
"""Representation of a device connected to a Netgear router."""
|
"""Representation of a device connected to a Netgear router."""
|
||||||
|
|
||||||
_attr_entity_registry_enabled_default = False
|
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
coordinator: DataUpdateCoordinator,
|
coordinator: DataUpdateCoordinator,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user