From 79af8ff211c07eb6bef50fe311ab76f6ec4650fb Mon Sep 17 00:00:00 2001 From: Josh Gruenstein Date: Tue, 14 Jan 2025 14:50:57 -0500 Subject: [PATCH] fix: update creds correctly on set --- intellinet_pdu_ctrl/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intellinet_pdu_ctrl/api.py b/intellinet_pdu_ctrl/api.py index 2b230cc..fcb5e03 100644 --- a/intellinet_pdu_ctrl/api.py +++ b/intellinet_pdu_ctrl/api.py @@ -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(