Skip to content

Commit

Permalink
Fix last_trip_average_electric_consumption state class
Browse files Browse the repository at this point in the history
Fix for issue: #277
  • Loading branch information
ColinRobbins authored Oct 6, 2024
1 parent 97a8360 commit 46f49a6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion custom_components/volkswagen_we_connect_id/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ class VolkswagenIdEntityDescription(SensorEntityDescription):
key="lastTripAverageElectricConsumption",
name="Last Trip Average Electric consumption",
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
value=lambda vehicle: vehicle.trips["shortTerm"].averageElectricConsumption.value,
),
VolkswagenIdEntityDescription(
Expand Down

0 comments on commit 46f49a6

Please sign in to comment.