Skip to content

Commit

Permalink
style: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 18, 2023
1 parent 5423471 commit e24f68c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/tesla_custom/teslamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def cast_km_to_miles(miles: float) -> float:
properly.
"""
km = float(miles)
miles = DistanceConverter.convert(
km, UnitOfLength.KILOMETERS, UnitOfLength.MILES
)
miles = DistanceConverter.convert(km, UnitOfLength.KILOMETERS, UnitOfLength.MILES)

return miles

Expand Down

0 comments on commit e24f68c

Please sign in to comment.