Skip to content

Commit

Permalink
Merge pull request #90 from epenet/patch-1
Browse files Browse the repository at this point in the history
Fix invalid unit
  • Loading branch information
cyr-ius authored Jan 6, 2024
2 parents 5b02997 + c0b3f67 commit 4e3cf4c
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 4e3cf4c

Please sign in to comment.