Add battery device class to Glances battery sensor (#86278)

pull/86292/head
Franck Nijhof 2023-01-20 14:47:38 +01:00 committed by GitHub
parent ae39b95bb1
commit db6cacafcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ SENSOR_TYPES: tuple[GlancesSensorEntityDescription, ...] = (
type="sensors",
name_suffix="Charge",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
icon="mdi:battery",
state_class=SensorStateClass.MEASUREMENT,
),