Skip to content

Commit

Permalink
Replace charging_time_remaining with charging_end_time
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed Dec 6, 2021
1 parent 7ef5a81 commit 133a2df
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions custom_components/bmw_connected_drive/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
LENGTH_KILOMETERS,
LENGTH_MILES,
PERCENTAGE,
TIME_HOURS,
VOLUME_GALLONS,
VOLUME_LITERS,
)
Expand Down Expand Up @@ -47,17 +46,11 @@ class BMWSensorEntityDescription(SensorEntityDescription):

SENSOR_TYPES: dict[str, BMWSensorEntityDescription] = {
# --- Generic ---
"charging_time_remaining": BMWSensorEntityDescription(
key="charging_time_remaining",
icon="mdi:update",
unit_metric=TIME_HOURS,
unit_imperial=TIME_HOURS,
),
"charging_end_time": BMWSensorEntityDescription(
key="charging_end_time",
device_class=DEVICE_CLASS_TIMESTAMP,
),
"charging_end_time_mybmw": BMWSensorEntityDescription(
"charging_end_time_original": BMWSensorEntityDescription(
key="charging_end_time_original",
entity_registry_enabled_default=False,
),
Expand Down

0 comments on commit 133a2df

Please sign in to comment.