Skip to content

Commit

Permalink
Added new line for change account detection in PECO
Browse files Browse the repository at this point in the history
  • Loading branch information
levelonedev committed Oct 18, 2023
1 parent 70e2ac3 commit f0180be
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 f0180be

Please sign in to comment.