Skip to content

Commit

Permalink
Merge pull request #16 from fluves/token-hotfix
Browse files Browse the repository at this point in the history
Add space to fix token usage
  • Loading branch information
stijnvanhoey authored Jun 19, 2020
2 parents 0509e34 + 4039d83 commit a3d73ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pywaterinfo/waterinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, provider: str = "vmm", token: str = None):
res.raise_for_status()
res_parsed = res.json()
self._token_header = {
"Authorization": f"{res_parsed['token_type']}"
"Authorization": f"{res_parsed['token_type']} "
f"{res_parsed['access_token']}"
}
expires_in = res_parsed["expires_in"]
Expand Down

0 comments on commit a3d73ff

Please sign in to comment.