mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Disable some less commonly used starlink entities by default (#87869)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
b0631fed1d
commit
c6d2824afe
@ -75,6 +75,7 @@ SENSORS: tuple[StarlinkSensorEntityDescription, ...] = (
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
native_unit_of_measurement=DEGREE,
|
||||
entity_registry_enabled_default=False,
|
||||
value_fn=lambda data: round(data.status["direction_azimuth"]),
|
||||
),
|
||||
StarlinkSensorEntityDescription(
|
||||
@ -84,6 +85,7 @@ SENSORS: tuple[StarlinkSensorEntityDescription, ...] = (
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
native_unit_of_measurement=DEGREE,
|
||||
entity_registry_enabled_default=False,
|
||||
value_fn=lambda data: round(data.status["direction_elevation"]),
|
||||
),
|
||||
StarlinkSensorEntityDescription(
|
||||
@ -91,6 +93,7 @@ SENSORS: tuple[StarlinkSensorEntityDescription, ...] = (
|
||||
name="Uplink throughput",
|
||||
icon="mdi:upload",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.DATA_RATE,
|
||||
native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND,
|
||||
value_fn=lambda data: round(data.status["uplink_throughput_bps"]),
|
||||
),
|
||||
@ -99,6 +102,7 @@ SENSORS: tuple[StarlinkSensorEntityDescription, ...] = (
|
||||
name="Downlink throughput",
|
||||
icon="mdi:download",
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
device_class=SensorDeviceClass.DATA_RATE,
|
||||
native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND,
|
||||
value_fn=lambda data: round(data.status["downlink_throughput_bps"]),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user