Add state class to powerwall charge sensor (#64939)

pull/64956/head
J. Nick Koston 2022-01-25 18:36:04 -10:00 committed by GitHub
parent 87d1478ca4
commit 8593d07883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class PowerWallChargeSensor(PowerWallEntity, SensorEntity):
"""Representation of an Powerwall charge sensor."""
_attr_name = "Powerwall Charge"
_attr_state_class = SensorStateClass.MEASUREMENT
_attr_native_unit_of_measurement = PERCENTAGE
_attr_device_class = SensorDeviceClass.BATTERY