Skip to content

Commit

Permalink
Revert renaming remaining_range_total
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed Apr 10, 2022
1 parent eb32123 commit e333dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/bmw_connected_drive/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"domain": "bmw_connected_drive",
"name": "BMW Connected Drive",
"documentation": "https://www.home-assistant.io/integrations/bmw_connected_drive",
"requirements": ["bimmer_connected==0.9.0.0b3"],
"requirements": ["bimmer_connected==0.9.0.0b4"],
"codeowners": ["@gerard33", "@rikroe"],
"config_flow": true,
"iot_class": "cloud_polling",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/bmw_connected_drive/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def convert_and_round(
unit_imperial=LENGTH_MILES,
value=lambda x, hass: convert_and_round(x, hass.config.units.length, 2),
),
"remaining_range_combined": BMWSensorEntityDescription(
key="remaining_range_combined",
"remaining_range_total": BMWSensorEntityDescription(
key="remaining_range_total",
key_class="fuel_and_battery",
icon="mdi:map-marker-distance",
unit_metric=LENGTH_KILOMETERS,
Expand Down

0 comments on commit e333dfd

Please sign in to comment.