Skip to content

Commit

Permalink
Set min/max soc entity unit to percent (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort authored Jan 21, 2024
1 parent bd65362 commit 46b6d1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/rct_power/lib/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,15 @@ def get_matching_names(expression: str):
name="Battery Minimum State of Charge",
update_priority=EntityUpdatePriority.FREQUENT,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement="%",
),
RctPowerSensorEntityDescription(
get_device_info=get_battery_device_info,
key="power_mng.soc_max",
name="Battery Maximum State of Charge",
update_priority=EntityUpdatePriority.FREQUENT,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement="%",
),
RctPowerSensorEntityDescription(
get_device_info=get_battery_device_info,
Expand Down

0 comments on commit 46b6d1a

Please sign in to comment.