Make unifi RX-/TX-sensors diagnostic entities (#105022)
parent
c62c002657
commit
65c8aa3249
|
@ -151,6 +151,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiSensorEntityDescription, ...] = (
|
|||
UnifiSensorEntityDescription[Clients, Client](
|
||||
key="Bandwidth sensor RX",
|
||||
device_class=SensorDeviceClass.DATA_RATE,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=UnitOfDataRate.MEGABYTES_PER_SECOND,
|
||||
icon="mdi:upload",
|
||||
|
@ -171,6 +172,7 @@ ENTITY_DESCRIPTIONS: tuple[UnifiSensorEntityDescription, ...] = (
|
|||
UnifiSensorEntityDescription[Clients, Client](
|
||||
key="Bandwidth sensor TX",
|
||||
device_class=SensorDeviceClass.DATA_RATE,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
native_unit_of_measurement=UnitOfDataRate.MEGABYTES_PER_SECOND,
|
||||
icon="mdi:download",
|
||||
|
|
Loading…
Reference in New Issue