From bfce54e22cae98a0d2a77a904f995909a35953c6 Mon Sep 17 00:00:00 2001 From: Chris <1105672+firstof9@users.noreply.github.com> Date: Sat, 10 Aug 2024 15:45:29 -0700 Subject: [PATCH] fix: correct unit of measurement for SoC sensors (#368) --- custom_components/openevse/const.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/openevse/const.py b/custom_components/openevse/const.py index 61fcf5b..3621a70 100644 --- a/custom_components/openevse/const.py +++ b/custom_components/openevse/const.py @@ -303,7 +303,7 @@ 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, ), @@ -311,7 +311,7 @@ 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, ),