Skip to content

Commit

Permalink
Merge pull request #49 from levelonedev/fix-for-PECO
Browse files Browse the repository at this point in the history
Added new line for change account detection in PECO
  • Loading branch information
tronikos authored Oct 18, 2023
2 parents 70e2ac3 + f0180be commit 9fb6b64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/opower/utilities/exelon.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ async def async_login(
) as resp:
result = await resp.text(encoding="utf-8")

if resp.request_info.url.path.endswith("/accounts/login/select-account"):
if resp.request_info.url.path.endswith(
"/accounts/login/select-account"
) or resp.request_info.url.path.endswith("Pages/ChangeAccount.aspx"):
# we probably need to select an account as we didn't automatically go to the dashboard
async with session.get(
"https://"
Expand Down

0 comments on commit 9fb6b64

Please sign in to comment.