Skip to content

Commit

Permalink
chore: Update native unit of measurement for Electric Mileage sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
remuslazar committed Jun 30, 2024
1 parent 9453497 commit a9a827f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/nissan_carwings/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(self, coordinator: CarwingsDrivingAnalysisDataUpdateCoordinator) ->
key="driving_analysis",
name="Electric Mileage",
device_class=SensorDeviceClass.ENERGY_STORAGE,
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
icon="mdi:ev-station",
suggested_display_precision=1,
)
Expand Down

0 comments on commit a9a827f

Please sign in to comment.