Skip to content

Commit

Permalink
fix: correct unit of measurement for SoC sensors (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Aug 10, 2024
1 parent a8df504 commit bfce54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/openevse/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,15 @@
name="Vehicle Range",
key="vehicle_range",
icon="mdi:ev-station",
native_unit_of_measurement=UnitOfLength.METERS,
native_unit_of_measurement=UnitOfLength.KILOMETERS,
device_class=SensorDeviceClass.DISTANCE,
entity_registry_enabled_default=False,
),
"vehicle_eta": SensorEntityDescription(
name="Vehicle Charge Completion",
key="vehicle_eta",
icon="mdi:car-electric",
native_unit_of_measurement=UnitOfTime.MINUTES,
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=False,
),
Expand Down

0 comments on commit bfce54e

Please sign in to comment.