diff --git a/custom_components/livebox/const.py b/custom_components/livebox/const.py index 6fbc58e..bb29afd 100644 --- a/custom_components/livebox/const.py +++ b/custom_components/livebox/const.py @@ -51,7 +51,7 @@ class FlowSensorEntityDescription(SensorEntityDescription): name="Orange Livebox Download speed", icon=DOWNLOAD_ICON, current_rate="DownstreamCurrRate", - native_unit_of_measurement=UnitOfDataRate.MEGABYTES_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.MEGABITS_PER_SECOND, state_class=SensorStateClass.MEASUREMENT, attr={ "downstream_maxrate": "DownstreamMaxRate", @@ -65,7 +65,7 @@ class FlowSensorEntityDescription(SensorEntityDescription): name="Orange Livebox Upload speed", icon=UPLOAD_ICON, current_rate="UpstreamCurrRate", - native_unit_of_measurement=UnitOfDataRate.MEGABYTES_PER_SECOND, + native_unit_of_measurement=UnitOfDataRate.MEGABITS_PER_SECOND, state_class=SensorStateClass.MEASUREMENT, attr={ "upstream_maxrate": "UpstreamMaxRate",