From b532776d78f118e89d757bb1e9bf12c5f74c6235 Mon Sep 17 00:00:00 2001 From: Bonne Eggleston Date: Thu, 22 May 2025 14:49:39 -0500 Subject: [PATCH] Make Powerwall energy sensors TOTAL_INCREASING to fix hardware swaps (#145165) --- homeassistant/components/powerwall/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/powerwall/sensor.py b/homeassistant/components/powerwall/sensor.py index f242d2c67e6..b44fea05638 100644 --- a/homeassistant/components/powerwall/sensor.py +++ b/homeassistant/components/powerwall/sensor.py @@ -314,7 +314,7 @@ class PowerWallBackupReserveSensor(PowerWallEntity, SensorEntity): class PowerWallEnergyDirectionSensor(PowerWallEntity, SensorEntity): """Representation of an Powerwall Direction Energy sensor.""" - _attr_state_class = SensorStateClass.TOTAL + _attr_state_class = SensorStateClass.TOTAL_INCREASING _attr_native_unit_of_measurement = UnitOfEnergy.KILO_WATT_HOUR _attr_device_class = SensorDeviceClass.ENERGY