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

pull/145468/head
Bonne Eggleston 2025-05-22 14:49:39 -05:00 committed by GitHub
parent 4ad34c57b5
commit b532776d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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