Skip to content

Commit

Permalink
fix: update creds correctly on set
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagruenstein committed Jan 14, 2025
1 parent fbae678 commit 79af8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intellinet_pdu_ctrl/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def set_credentials(self, new_credentials: aiohttp.BasicAuth) -> None:
status.user_verify_result == UserVerifyResult.CREDENTIALS_CHANGED
), f"Credentials were not changed {status.user_verify_result=}"

self.session._default_auth = new_credentials
self.auth = new_credentials

async def get_network_configuration(self) -> NetworkConfiguration:
return NetworkConfiguration.from_xml(
Expand Down

0 comments on commit 79af8ff

Please sign in to comment.