Skip to content

Commit

Permalink
Fix Coned: GetOpowerToken now requires Referer header
Browse files Browse the repository at this point in the history
  • Loading branch information
rvsit authored Oct 17, 2023
1 parent ff788fb commit a108bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opower/utilities/coned.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async def async_login(
"https://www."
+ hostname
+ "/sitecore/api/ssc/ConEd-Cms-Services-Controllers-Opower/OpowerService/0/GetOPowerToken",
headers={"User-Agent": USER_AGENT},
headers=login_headers,
raise_for_status=True,
) as resp:
return str(await resp.json())

0 comments on commit a108bb7

Please sign in to comment.