Skip to content

Commit

Permalink
Fix unit of data rate #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Nov 19, 2023
1 parent f1381b7 commit 26c0e87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/speedport/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,29 @@
key="inet_upload",
name="Upload",
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfDataRate.KILOBITS_PER_SECOND,
native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND,
device_class=SensorDeviceClass.DATA_RATE,
icon="mdi:upload",
),
SensorEntityDescription(
key="inet_download",
name="Download",
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=UnitOfDataRate.KILOBITS_PER_SECOND,
native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND,
device_class=SensorDeviceClass.DATA_RATE,
icon="mdi:download",
),
SensorEntityDescription(
key="dsl_upstream",
name="DSL-Link Upstream",
native_unit_of_measurement=UnitOfDataRate.KILOBITS_PER_SECOND,
native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND,
device_class=SensorDeviceClass.DATA_RATE,
icon="mdi:upload",
),
SensorEntityDescription(
key="dsl_downstream",
name="DSL-Link Downstream",
native_unit_of_measurement=UnitOfDataRate.KILOBITS_PER_SECOND,
native_unit_of_measurement=UnitOfDataRate.BITS_PER_SECOND,
device_class=SensorDeviceClass.DATA_RATE,
icon="mdi:download",
),
Expand Down

0 comments on commit 26c0e87

Please sign in to comment.