Skip to content

Commit

Permalink
Fix invalid unit
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Jan 6, 2024
1 parent 5b02997 commit c0b3f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/livebox/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit c0b3f67

Please sign in to comment.