Add charging target sensor to bmw_connected_drive (#92628)

* Add chaging status sensor

* Add unit type based on review
This commit is contained in:
Christoffer Poulsen 2023-05-06 11:57:53 +02:00 committed by GitHub
parent f9fe3f4af4
commit 053eaad2bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,13 @@ SENSOR_TYPES: dict[str, BMWSensorEntityDescription] = {
icon="mdi:ev-station",
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(
key="remaining_battery_percent",
name="Remaining battery percent",