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
53 stars 49 forks source link

Fix AEP: Always parse out the subdomain, even if already logged in #69

Closed benhoff closed 4 months ago

benhoff commented 4 months ago

See the issue here: https://github.com/home-assistant/core/issues/110019

Basically, this fixes an assertion bug where the server thinks we're already logged in, and we thus exit, but cls._subdomain isn't set, leading to an assertion error down the line.

benhoff commented 4 months ago

I'd recommend pushing the version number so that the requirement can be changed in home assistant as well. I can add that if you'd like to this PR.

tronikos commented 4 months ago

Thanks for the fix. I released 0.3.1. Please bump the version on the Home Assistant side.