Skip to content

Commit

Permalink
Remove device class from percentage entity description (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ authored Jun 23, 2023
1 parent 2dede85 commit 6a03070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Avoid creating entities that are not usable in selected device operation mode for hmIP-RGBW
- Update requirements
- Add missing comma, to fix entity description
- Remove device class from percentage entity description

# Version 1.37.3 (2023-06-02)

Expand Down
3 changes: 1 addition & 2 deletions custom_components/homematicip_local/entity_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,8 @@

_SENSOR_DESCRIPTIONS_BY_UNIT: dict[str, EntityDescription] = {
PERCENTAGE: HmSensorEntityDescription(
key="HUMIDITY",
key="PERCENTAGE",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
),
UnitOfPressure.BAR: HmSensorEntityDescription(
Expand Down

0 comments on commit 6a03070

Please sign in to comment.