mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +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",
|
||||
translation_key="link_type",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"link_rate": SensorEntityDescription(
|
||||
key="link_rate",
|
||||
translation_key="link_rate",
|
||||
native_unit_of_measurement="Mbps",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"signal": SensorEntityDescription(
|
||||
key="signal",
|
||||
translation_key="signal_strength",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"ssid": SensorEntityDescription(
|
||||
key="ssid",
|
||||
@ -69,6 +72,7 @@ SENSOR_TYPES = {
|
||||
key="conn_ap_mac",
|
||||
translation_key="access_point_mac",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
}
|
||||
|
||||
@ -326,8 +330,6 @@ async def async_setup_entry(
|
||||
class NetgearSensorEntity(NetgearDeviceEntity, SensorEntity):
|
||||
"""Representation of a device connected to a Netgear router."""
|
||||
|
||||
_attr_entity_registry_enabled_default = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
coordinator: DataUpdateCoordinator,
|
||||
|
Loading…
x
Reference in New Issue
Block a user