Skip to content

Commit

Permalink
fix: set fiter and wick sensors to battery class so battery automatio…
Browse files Browse the repository at this point in the history
…ns can find when they are low like a battery until a more fitting device class is added
  • Loading branch information
dahlb committed Jan 15, 2025
1 parent 9accedc commit dc914f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/ha_blueair/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class BlueairFilterLifeSensor(BlueairSensor):
entity_description = SensorEntityDescription(
key="filter_life",
name="Filter Life",
device_class=SensorDeviceClass.BATTERY,
native_unit_of_measurement=PERCENTAGE,
suggested_display_precision=0,
icon="mdi:air-filter",
Expand All @@ -148,6 +149,7 @@ class BlueairWickLifeSensor(BlueairSensor):
entity_description = SensorEntityDescription(
key="wick_life",
name="Wick Life",
device_class=SensorDeviceClass.BATTERY,
native_unit_of_measurement=PERCENTAGE,
suggested_display_precision=0,
icon="mdi:air-filter",
Expand Down

0 comments on commit dc914f4

Please sign in to comment.