jsgoecke / tesla

Provides a wrapper around the API to easily query and command a Telsa car. As of now this has been used with a Model S, a Model X, and a Model 3.
MIT License
325 stars 72 forks source link

ChargeState.ChargerPower should be int #28

Open andig opened 4 years ago

andig commented 4 years ago

It is an interface{} currently while the examples at https://tesla-api.timdorr.com/vehicle/state/chargestate seem to indicate that it's an int?

jsgoecke commented 4 years ago

Good question, I'm not sure why I originally used interface{} for many of these. I will have a look and see about changing them to reflect the JSON with int and bool in some cases.