Replace charging_time_remaining with charging_end_time in bmw_connected_drive (#60942)
Co-authored-by: rikroe <rikroe@users.noreply.github.com>
This commit is contained in:
parent
f40870b4d7
commit
986b60e527
1 changed files with 12 additions and 6 deletions
|
@ -19,7 +19,6 @@ from homeassistant.const import (
|
|||
LENGTH_KILOMETERS,
|
||||
LENGTH_MILES,
|
||||
PERCENTAGE,
|
||||
TIME_HOURS,
|
||||
VOLUME_GALLONS,
|
||||
VOLUME_LITERS,
|
||||
)
|
||||
|
@ -49,11 +48,18 @@ 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_start_time": BMWSensorEntityDescription(
|
||||
key="charging_start_time",
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"charging_end_time": BMWSensorEntityDescription(
|
||||
key="charging_end_time",
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
),
|
||||
"charging_time_label": BMWSensorEntityDescription(
|
||||
key="charging_time_label",
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"charging_status": BMWSensorEntityDescription(
|
||||
key="charging_status",
|
||||
|
|
Loading…
Add table
Reference in a new issue