Skip to content

Commit 0bb7da6

Browse files
committed
fix token saving
1 parent 1a0b331 commit 0bb7da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openhab/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def _oauth2_token_updater(self, token: typing.Dict[str, typing.Any]) -> None:
312312
self.oauth2_config.token = Oauth2Token(**token)
313313

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

317317
def create_or_update_item(self,
318318
name: str,

0 commit comments

Comments
 (0)