Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
Renommé pour être plus facile à suivre.
  • Loading branch information
ic-dev21 committed Dec 6, 2024
1 parent 83c3ad6 commit 414b256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyhilo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 414b256

Please sign in to comment.