Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ic-dev21 committed Nov 17, 2024
1 parent 16e7723 commit f494e9e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyhilo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
API_NOTIFICATIONS_ENDPOINT,
API_REGISTRATION_ENDPOINT,
API_REGISTRATION_HEADERS,
AUTOMATION_DEVICEHUB_ENDPOINT,
AUTOMATION_CHALLENGE_ENDPOINT,
AUTOMATION_DEVICEHUB_ENDPOINT,
DEFAULT_STATE_FILE,
DEFAULT_USER_AGENT,
FB_APP_ID,
Expand Down Expand Up @@ -368,12 +368,10 @@ async def _async_post_init(self) -> None:
await self.refresh_ws2_token()
self.websocket2 = WebsocketClient(self)


async def refresh_ws_token(self) -> None:
(self.ws_url, self.ws_token) = await self.post_devicehub_negociate()
await self.get_websocket_params()


async def post_devicehub_negociate(self) -> tuple[str, str]:
LOG.debug("Getting websocket url")
url = f"{AUTOMATION_DEVICEHUB_ENDPOINT}/negotiate"
Expand All @@ -391,7 +389,7 @@ async def post_devicehub_negociate(self) -> tuple[str, str]:
},
)
return (ws_url, ws_token)

async def refresh_ws2_token(self) -> None:
(self.ws2_url, self.ws2_token) = await self.post_challengehub_negociate()
await self.get_websocket2_params()
Expand Down

0 comments on commit f494e9e

Please sign in to comment.