mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Add state class to powerwall charge sensor (#64939)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user