Skip to content

Commit 1ac359f

Browse files
authored
Merge pull request #762 from alandtse/dev
2 parents 302e49c + b77e94a commit 1ac359f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pull requests are the best way to propose changes to the codebase.
1616
1. Fork the repo and create your branch from `main`.
1717
2. If you've changed something, update the documentation.
1818
3. Make sure your code lints (using black).
19-
4. Test you contribution.
19+
4. Test your contribution.
2020
5. Issue that pull request!
2121

2222
## Any contributions you make will be under the Apache License
@@ -30,7 +30,7 @@ Report a bug by [opening a new issue](../../issues/new/choose); it's that easy!
3030

3131
## Write bug reports with detail, background, and sample code
3232

33-
**Great Bug Reports** tend to have:
33+
**Great Bug Reports** typically have:
3434

3535
- A quick summary and/or background
3636
- Steps to reproduce
@@ -50,7 +50,7 @@ Use [black](https://github.com/ambv/black) to make sure the code follows the sty
5050

5151
This custom integration is based on [integration_blueprint template](https://github.com/custom-components/integration_blueprint).
5252

53-
It comes with development environment in a container, easy to launch
53+
It comes with development environment in a container that is easy to launch
5454
if you use Visual Studio Code. With this container you will have a stand alone
5555
Home Assistant instance running and already configured with the included
5656
[`.devcontainer/configuration.yaml`](./.devcontainer/configuration.yaml)

custom_components/tesla_custom/teslamate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ def cast_car_state(state: str, car: TeslaCar) -> (str, str):
138138

139139
MAP_CHARGE_STATE = {
140140
"battery_level": ("battery_level", float),
141-
"est_battery_range_km": ("battery_range", cast_km_to_miles),
141+
"rated_battery_range_km": ("battery_range", cast_km_to_miles),
142+
"est_battery_range_km": ("est_battery_range", cast_km_to_miles),
143+
"ideal_battery_range_km": ("ideal_battery_range", cast_km_to_miles),
142144
"usable_battery_level": ("usable_battery_level", float),
143145
"charge_energy_added": ("charge_energy_added", float),
144146
"charger_actual_current": ("charger_actual_current", int),

0 commit comments

Comments
 (0)