mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add charging target sensor to bmw_connected_drive (#92628)
* Add chaging status sensor * Add unit type based on review
This commit is contained in:
parent
f9fe3f4af4
commit
053eaad2bd
@ -73,6 +73,13 @@ SENSOR_TYPES: dict[str, BMWSensorEntityDescription] = {
|
|||||||
icon="mdi:ev-station",
|
icon="mdi:ev-station",
|
||||||
value=lambda x, y: x.value,
|
value=lambda x, y: x.value,
|
||||||
),
|
),
|
||||||
|
"charging_target": BMWSensorEntityDescription(
|
||||||
|
key="charging_target",
|
||||||
|
name="Charging target",
|
||||||
|
key_class="fuel_and_battery",
|
||||||
|
icon="mdi:battery-charging-high",
|
||||||
|
unit_type=PERCENTAGE,
|
||||||
|
),
|
||||||
"remaining_battery_percent": BMWSensorEntityDescription(
|
"remaining_battery_percent": BMWSensorEntityDescription(
|
||||||
key="remaining_battery_percent",
|
key="remaining_battery_percent",
|
||||||
name="Remaining battery percent",
|
name="Remaining battery percent",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user