From f494e9e08c4821924c03cc06df9eae7cf2b396c6 Mon Sep 17 00:00:00 2001 From: "Ian C." <108159253+ic-dev21@users.noreply.github.com> Date: Sun, 17 Nov 2024 09:38:21 -0500 Subject: [PATCH] Linting --- pyhilo/api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pyhilo/api.py b/pyhilo/api.py index 5b1d18b..da01e16 100755 --- a/pyhilo/api.py +++ b/pyhilo/api.py @@ -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, @@ -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" @@ -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()