mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Remove unneeded charging_status attribute in bmw_connected_drive binary sensor (#74921)
* Use `charging_status.value` in attribute for BMW binary sensor * Remove `charging_status` attribute Co-authored-by: rikroe <rikroe@users.noreply.github.com>
This commit is contained in:
parent
72a4f8af3d
commit
4eb4146e29
@ -180,9 +180,6 @@ SENSOR_TYPES: tuple[BMWBinarySensorEntityDescription, ...] = (
|
||||
icon="mdi:ev-station",
|
||||
# device class power: On means power detected, Off means no power
|
||||
value_fn=lambda v: v.fuel_and_battery.charging_status == ChargingState.CHARGING,
|
||||
attr_fn=lambda v, u: {
|
||||
"charging_status": str(v.fuel_and_battery.charging_status),
|
||||
},
|
||||
),
|
||||
BMWBinarySensorEntityDescription(
|
||||
key="connection_status",
|
||||
|
Loading…
x
Reference in New Issue
Block a user