mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-30 23:44:31 +02:00
fixed uom for interfaces, fixes #325
This commit is contained in:
parent
80bae0c34d
commit
a61dfa5ff7
1 changed files with 2 additions and 2 deletions
|
@ -448,7 +448,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = (
|
|||
key="tx-total",
|
||||
name="TX total",
|
||||
icon="mdi:upload-network",
|
||||
native_unit_of_measurement=UnitOfInformation.BITS,
|
||||
native_unit_of_measurement=UnitOfInformation.BYTES,
|
||||
suggested_unit_of_measurement=UnitOfInformation.GIGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
|
@ -469,7 +469,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = (
|
|||
key="rx-total",
|
||||
name="RX total",
|
||||
icon="mdi:download-network",
|
||||
native_unit_of_measurement=UnitOfInformation.BITS,
|
||||
native_unit_of_measurement=UnitOfInformation.BYTES,
|
||||
suggested_unit_of_measurement=UnitOfInformation.GIGABYTES,
|
||||
suggested_display_precision=1,
|
||||
device_class=SensorDeviceClass.DATA_SIZE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue