Skip to content

Commit

Permalink
Make new attributes available for HA
Browse files Browse the repository at this point in the history
Also add `charging_start_time` which is already part of `sensor.py` in HA but isn't available without this change
  • Loading branch information
gerard33 authored Feb 11, 2023
1 parent 3633a5d commit 7b3a3c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bimmer_connected/vehicle/vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,18 @@ def drive_train_attributes(self) -> List[str]:
if self.has_electric_drivetrain:
result += [
"charging_time_remaining",
"charging_start_time",
"charging_end_time",
"charging_time_label",
"charging_status",
"connection_status",
"remaining_battery_percent",
"remaining_range_electric",
"last_charging_end_result",
"ac_current_limit",
"charging_target",
"charging_mode",
"charging_preferences",
]
if self.has_combustion_drivetrain:
result += ["remaining_fuel", "remaining_range_fuel", "remaining_fuel_percent"]
Expand Down

0 comments on commit 7b3a3c4

Please sign in to comment.