Skip to content

Commit

Permalink
add unit of measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjakobi committed Apr 26, 2024
1 parent ef756f8 commit 7aef8dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/roborock/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ class RoborockSensorDescription(SensorEntityDescription):
entity_category=EntityCategory.DIAGNOSTIC,
),
f"current_{ATTR_BATTERY}": RoborockSensorDescription(
native_unit_of_measurement=PERCENTAGE,
key="battery",
icon="mdi:battery",
name="Battery",
Expand Down

0 comments on commit 7aef8dc

Please sign in to comment.