Skip to content

Commit

Permalink
Fix evergy access token
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikos committed Aug 3, 2023
1 parent 5f1a522 commit e8d88d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "opower"
version = "0.0.18"
version = "0.0.19"
license = {text = "Apache-2.0"}
authors = [
{ name="tronikos", email="tronikos@gmail.com" },
Expand Down
2 changes: 1 addition & 1 deletion src/opower/utilities/evergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def async_login(
headers={"User-Agent": USER_AGENT},
raise_for_status=False,
) as resp:
opower_access_token = resp.headers["jwt"]
opower_access_token = resp.headers["jwt"].removeprefix('Bearer ')

assert opower_access_token, "Failed to parse OPower bearer token"

Expand Down

0 comments on commit e8d88d3

Please sign in to comment.