diff --git a/custom_components/mikrotik_router/sensor_types.py b/custom_components/mikrotik_router/sensor_types.py index d5d2e72..ec23eb9 100644 --- a/custom_components/mikrotik_router/sensor_types.py +++ b/custom_components/mikrotik_router/sensor_types.py @@ -406,7 +406,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="traffic_tx", name="TX", icon="mdi:upload-network-outline", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -427,7 +427,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="traffic_rx", name="RX", icon="mdi:download-network-outline", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -490,7 +490,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="client_traffic_lan_tx", name="LAN TX", icon="mdi:upload-network", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -511,7 +511,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="client_traffic_lan_rx", name="LAN RX", icon="mdi:download-network", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -532,7 +532,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="client_traffic_wan_tx", name="WAN TX", icon="mdi:upload-network", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -553,7 +553,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="client_traffic_wan_rx", name="WAN RX", icon="mdi:download-network", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -574,7 +574,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="client_traffic_tx", name="TX", icon="mdi:upload-network", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE, @@ -595,7 +595,7 @@ SENSOR_TYPES: tuple[MikrotikSensorEntityDescription, ...] = ( key="client_traffic_rx", name="RX", icon="mdi:download-network", - native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.BYTES_PER_SECOND, suggested_unit_of_measurement=UnitOfDataRate.KILOBYTES_PER_SECOND, suggested_display_precision=1, device_class=SensorDeviceClass.DATA_RATE,