From 8593d0788304458010fb8fcc7268de077a8aa964 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 25 Jan 2022 18:36:04 -1000 Subject: [PATCH] Add state class to powerwall charge sensor (#64939) --- homeassistant/components/powerwall/sensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/powerwall/sensor.py b/homeassistant/components/powerwall/sensor.py index ceba94c830d..da0e7e7f599 100644 --- a/homeassistant/components/powerwall/sensor.py +++ b/homeassistant/components/powerwall/sensor.py @@ -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