Skip to content

Commit

Permalink
Enable slowly-changing, important diagnostics for connected devices b…
Browse files Browse the repository at this point in the history
…y default (#134776)
  • Loading branch information
lanthaler authored Jan 11, 2025
1 parent 20d6ba4 commit 19f4606
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions homeassistant/components/netgear/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,21 @@
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",
Expand All @@ -69,6 +72,7 @@
key="conn_ap_mac",
translation_key="access_point_mac",
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
}

Expand Down Expand Up @@ -326,8 +330,6 @@ def new_device_callback() -> None:
class NetgearSensorEntity(NetgearDeviceEntity, SensorEntity):
"""Representation of a device connected to a Netgear router."""

_attr_entity_registry_enabled_default = False

def __init__(
self,
coordinator: DataUpdateCoordinator,
Expand Down

0 comments on commit 19f4606

Please sign in to comment.