timmo001 / ovoenergy

Get energy data from OVO's API.
https://timmo.dev
Apache License 2.0
30 stars 16 forks source link

Library doesn't handle multiple accounts #47

Closed stuart-c closed 2 years ago

stuart-c commented 2 years ago

Description

I'm an OVO customer who moved house and therefore have two account IDs associated with my login. Looking at the code (https://github.com/timmo001/ovoenergy/blob/master/ovoenergy/ovoenergy.py#L59) the library just picks whatever is the first account ID returned, which in my case is the "wrong" one.

How to reproduce the issue (if applicable)

Use an OVO login with multiple accounts