Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Updated battery range to be miles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgierens committed Dec 30, 2023
1 parent 7b1d44b commit e56b39c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/tessie/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def async_setup_entry(
SensorEntityDescription(
translation_key="battery_range",
key="last_state.charge_state.battery_range",
native_unit_of_measurement=UnitOfLength.KILOMETERS,
native_unit_of_measurement=UnitOfLength.MILES,
device_class=SensorDeviceClass.DISTANCE,
),
SensorEntityDescription(
Expand Down Expand Up @@ -254,7 +254,7 @@ async def async_setup_entry(
SensorEntityDescription(
translation_key="est_battery_range",
key="last_state.charge_state.est_battery_range",
native_unit_of_measurement=UnitOfLength.KILOMETERS,
native_unit_of_measurement=UnitOfLength.MILES,
device_class=SensorDeviceClass.DISTANCE,
),
SensorEntityDescription(
Expand All @@ -278,7 +278,7 @@ async def async_setup_entry(
SensorEntityDescription(
translation_key="ideal_battery_range",
key="last_state.charge_state.ideal_battery_range",
native_unit_of_measurement=UnitOfLength.KILOMETERS,
native_unit_of_measurement=UnitOfLength.MILES,
device_class=SensorDeviceClass.DISTANCE,
),
SensorEntityDescription(
Expand Down

0 comments on commit e56b39c

Please sign in to comment.