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
[x] Code tested on Connect IQ Device simulator with fenix 6® pro
[x] App tested on real fenix 6® pro
Fixes #42
Before the fix
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.
Tesla removed the
display_name
property from thevehicle_data
response. It is now found under undervehicle_state
subsection of thevehicle_data
response.This PR addresses this issue.
Tests
Fixes #42
Before the fix
After the fix