Skip to content

Commit

Permalink
fix token saving
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0nx committed Aug 19, 2023
1 parent 1a0b331 commit 0bb7da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openhab/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def _oauth2_token_updater(self, token: typing.Dict[str, typing.Any]) -> None:
self.oauth2_config.token = Oauth2Token(**token)

with self.oauth2_config.token_cache.open('w', encoding='utf-8') as fhdl:
fhdl.write(self.oauth2_config.model_dump_json())
fhdl.write(self.oauth2_config.token.model_dump_json())

def create_or_update_item(self,
name: str,
Expand Down

0 comments on commit 0bb7da6

Please sign in to comment.