Skip to content

Commit

Permalink
Fix energy remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Jul 9, 2024
1 parent 8704cb6 commit fd7bf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/teslemetry/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fd7bf82

Please sign in to comment.