bogosj / tesla

Provides a wrapper around the API to easily query and command a Telsa car.
Other
23 stars 18 forks source link

fetching products fails if non-energy products are present #117

Closed GrimmiMeloni closed 11 months ago

GrimmiMeloni commented 11 months ago

The call against the products endpoint gives mixed responses if non-energy products like vehicles are present in the same account as e.g. a powerwall. The unmarshalling of the response fails on this response, as the product.id field varies between numeric (for vehicles) and string (for energy products).

GrimmiMeloni commented 11 months ago

@bogosj I will take a look and contribute a PR to fix this.