Make Powerwall energy sensors TOTAL_INCREASING to fix hardware swaps (#145165)
parent
4ad34c57b5
commit
b532776d78
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue