Skip to content

Commit

Permalink
Merge pull request #762 from alandtse/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse authored Nov 5, 2023
2 parents 302e49c + b77e94a commit 1ac359f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pull requests are the best way to propose changes to the codebase.
1. Fork the repo and create your branch from `main`.
2. If you've changed something, update the documentation.
3. Make sure your code lints (using black).
4. Test you contribution.
4. Test your contribution.
5. Issue that pull request!

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

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

**Great Bug Reports** tend to have:
**Great Bug Reports** typically have:

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

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

It comes with development environment in a container, easy to launch
It comes with development environment in a container that is easy to launch
if you use Visual Studio Code. With this container you will have a stand alone
Home Assistant instance running and already configured with the included
[`.devcontainer/configuration.yaml`](./.devcontainer/configuration.yaml)
Expand Down
4 changes: 3 additions & 1 deletion custom_components/tesla_custom/teslamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ def cast_car_state(state: str, car: TeslaCar) -> (str, str):

MAP_CHARGE_STATE = {
"battery_level": ("battery_level", float),
"est_battery_range_km": ("battery_range", cast_km_to_miles),
"rated_battery_range_km": ("battery_range", cast_km_to_miles),
"est_battery_range_km": ("est_battery_range", cast_km_to_miles),
"ideal_battery_range_km": ("ideal_battery_range", cast_km_to_miles),
"usable_battery_level": ("usable_battery_level", float),
"charge_energy_added": ("charge_energy_added", float),
"charger_actual_current": ("charger_actual_current", int),
Expand Down

0 comments on commit 1ac359f

Please sign in to comment.