Make Powerwall energy sensors TOTAL_INCREASING to fix hardware swaps (#145165)

This commit is contained in:
Bonne Eggleston
2025-05-22 14:49:39 -05:00
committed by GitHub
parent 4ad34c57b5
commit b532776d78

View File

@ -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