magico13 / PyEmVue

Python Library for the Emporia Vue Energy Monitor
MIT License
185 stars 36 forks source link

Bad Request #26

Closed Cuervocartoon closed 2 years ago

Cuervocartoon commented 2 years ago

Hello

I've worked with the API without trouble but today's msg is:

requests.exceptions.HTTPError: 400 Client Error: Bad Request for URL: https://api.emporiaenergy.com/customers/#####/devices?detailed=true&hierarchy=true

Tha code is:

vue = PyEmVue() vue.login(username='xxx@xxxcom', password='xxxxx')

dispositivos=vue.get_devices() (Here is the error) for dispositivo in dispositivos: device=vue.populate_device_properties(dispositivo) sede=device.device_name print(sede)

Any changes in the API maybe?

Than you

magico13 commented 2 years ago

Update to 0.14.0 and that should go away. Be aware that there are some breaking changes, see the recent releases for more info.

Cuervocartoon commented 2 years ago

I'm sorry, I didn't see the update.

Thank you for your reply.