Skip to content

Commit 79af8ff

Browse files
fix: update creds correctly on set
1 parent fbae678 commit 79af8ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intellinet_pdu_ctrl/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def set_credentials(self, new_credentials: aiohttp.BasicAuth) -> None:
131131
status.user_verify_result == UserVerifyResult.CREDENTIALS_CHANGED
132132
), f"Credentials were not changed {status.user_verify_result=}"
133133

134-
self.session._default_auth = new_credentials
134+
self.auth = new_credentials
135135

136136
async def get_network_configuration(self) -> NetworkConfiguration:
137137
return NetworkConfiguration.from_xml(

0 commit comments

Comments
 (0)