Skip to content

Commit

Permalink
Merge pull request #702 from alandtse/dev
Browse files Browse the repository at this point in the history
fix: fix processing of teslamate trunk opening (#701)
  • Loading branch information
alandtse authored Aug 28, 2023
2 parents f2642a1 + afc1bd9 commit 569bf5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tesla_custom/teslamate.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def cast_bool(val: str) -> bool:

def cast_trunk_open(val: str) -> int:
"""Convert bool string to trunk/frunk open/close value."""
return 255 if cast_bool(str) else 0
return 255 if cast_bool(val) else 0


def cast_speed(speed: int) -> int:
Expand Down

0 comments on commit 569bf5a

Please sign in to comment.