From 414b256ebc7f479427d9b9d05a98af244152b01d Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:21:27 -0500 Subject: [PATCH] Update api.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renommé pour être plus facile à suivre. --- pyhilo/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyhilo/api.py b/pyhilo/api.py index 6cf75a3..348109c 100755 --- a/pyhilo/api.py +++ b/pyhilo/api.py @@ -81,7 +81,7 @@ def __init__( self.device_attributes = get_device_attributes() self.session: ClientSession = session self._oauth_session = oauth_session - self.websocket: WebsocketClient + self.websocket_devices: WebsocketClient self.log_traces = log_traces self._get_device_callbacks: list[Callable[..., Any]] = [] self.ws_url: str = "" @@ -375,8 +375,8 @@ async def _async_post_init(self) -> None: # Create both websocket clients # ic-dev21 need to work on this as it can't lint as is, may need to # instantiate differently - self.websocket = WebsocketClient(self.websocket_manager.devicehub) - self.websocket2 = WebsocketClient(self.websocket_manager.challengehub) + self.websocket_devices = WebsocketClient(self.websocket_manager.devicehub) + self.websocket_challenges = WebsocketClient(self.websocket_manager.challengehub) async def refresh_ws_token(self) -> None: """Refresh the websocket token."""