bogosj / tesla

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

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

Closed GrimmiMeloni closed 9 months ago

GrimmiMeloni commented 10 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 10 months ago

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