Skip to content

Commit

Permalink
fix: add humidity sensor unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Michsior14 committed Apr 3, 2024
1 parent 24c4b9c commit 5c02ba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/venta/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
CONCENTRATION_PARTS_PER_BILLION,
CONCENTRATION_PARTS_PER_MILLION,
PERCENTAGE,
REVOLUTIONS_PER_MINUTE,
EntityCategory,
UnitOfTemperature,
Expand Down Expand Up @@ -153,6 +154,7 @@ class VentaSensorEntityDescription(
translation_key=ATTR_HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
device_class=SensorDeviceClass.HUMIDITY,
native_unit_of_measurement=PERCENTAGE,
suggested_display_precision=1,
exists_func=lambda coordinator: coordinator.data.measure.get("Humidity")
is not None,
Expand Down

0 comments on commit 5c02ba8

Please sign in to comment.