Tesla Custom Integration (units)

Hi all, hopefully a quick question. I had Tesla Custom integration all installed, with a few custom button cards on my dashboard. All good and working for about a year.

Did an update on the Tesla custom integration the other day that screwed it. Simply removed integration and reinstalled and all ok. However my range is now defaulting to km not miles. My HA install is set for imperial not metric so dont know where to change this. Any ideas…it was fine till last week.
thanks

It’s ok. Have resolved myself by changing settings of the sensors.
Thanks