tronikos / opower

A Python library for getting historical and forecasted usage/cost from utilities that use opower.com such as PG&E
Apache License 2.0
61 stars 55 forks source link

Support multi-customer per user #2

Closed FrancoisHuet closed 1 year ago

FrancoisHuet commented 1 year ago

Add support for multiple customers per user. On PG&E at least, a single user can be encoded as different customers, with electricity and gas split into them. This requires passing the customer uuid corresponding to the account as part of the requests.

Tested via demo.py, and through local development in home assistant.

FrancoisHuet commented 1 year ago

This addresses https://github.com/tronikos/opower-hacs/issues/6

FrancoisHuet commented 1 year ago

Re-opening after fixing formatting per black.