diff --git a/custom_components/teslemetry/sensor.py b/custom_components/teslemetry/sensor.py index 000aec7..0cbd04e 100644 --- a/custom_components/teslemetry/sensor.py +++ b/custom_components/teslemetry/sensor.py @@ -716,7 +716,7 @@ class TeslemetryStreamSensorEntityDescription(SensorEntityDescription): TeslemetryStreamSensorEntityDescription( key=TelemetryField.ENERGY_REMAINING, value_fn=lambda x: float(x), - state_class=SensorStateClass.MEASUREMENT, + state_class=SensorStateClass.TOTAL, native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR, device_class=SensorDeviceClass.ENERGY, suggested_display_precision=1,