Skip to content

Conversation

@bdo
Copy link

@bdo bdo commented Nov 7, 2023

Tesla removed the display_name property from the vehicle_data response. It is now found under under vehicle_state subsection of the vehicle_data response.

This PR addresses this issue.

Tests

  • Code tested on Connect IQ Device simulator with fenix 6® pro
  • App tested on real fenix 6® pro

Fixes #42

Before the fix

image

Error: Unhandled Exception
Exception: UnexpectedTypeException: Expected Number/Float/Boolean/Long/Double, given null
Stack: 
  - setText() at 704b03c0.mb:5530 0x300043fd 
  - onUpdate() at /Users/bdoncieu/projects/garmin-tesla/source/MainView.mc:115 0x1000122f 

Encountered app crash.

After the fix

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Widget crashes on all Garmin devices

1 participant