Skip to content

Commit

Permalink
Merge pull request #7 from brettonw/main
Browse files Browse the repository at this point in the history
main - Change MEASUREMENT to TOTAL_INCREASING
  • Loading branch information
mbillow authored Jun 11, 2022
2 parents 8c2dc49 + eba5d45 commit 246052f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/chargepoint/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def native_value(self):
name_suffix="Energy Output",
icon="mdi:lightning-bolt-circle",
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL_INCREASING,
value=lambda entity: round(entity.session.energy_kwh, 2)
if entity.session
else 0,
Expand Down

0 comments on commit 246052f

Please sign in to comment.