Skip to content

Commit

Permalink
Fix reading back OAuthToken
Browse files Browse the repository at this point in the history
  • Loading branch information
AfonsoFGarcia committed Sep 6, 2023
1 parent 94d82d0 commit e8362e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/bluecon/ConfigFolderOAuthTokenStorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry):

def retrieveOAuthToken(self) -> OAuthToken:
with open(self.__oAuthTokenFileName, "r") as f:
return OAuthToken.fromJson(f)
return OAuthToken.fromJson(f.read())

def storeOAuthToken(self, oAuthToken: OAuthToken):
with open(self.__oAuthTokenFileName, "w") as f:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bluecon/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "bluecon",
"name": "Fermax Blue",
"version": "0.1.14",
"version": "0.1.15",
"documentation": "https://hass-bluecon.afonsogarcia.dev/",
"issue_tracker": "https://github.com/AfonsoFGarcia/hass-bluecon/issues",
"requirements": ["bluecon==0.1.2", "aiohttp", "oscrypto", "protobuf", "http-ece"],
Expand Down

0 comments on commit e8362e4

Please sign in to comment.