Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
Dernière petite modif de linting
  • Loading branch information
ic-dev21 committed Jun 12, 2024
1 parent 0ab8749 commit b3c365f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyhilo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import random
import string
import sys
from typing import Any, Callable, Dict, Union, cast
from typing import Any, Callable, Union, cast
from urllib import parse

from aiohttp import ClientSession
Expand Down Expand Up @@ -45,6 +45,7 @@
from pyhilo.device import DeviceAttribute, HiloDevice, get_device_attributes
from pyhilo.exceptions import InvalidCredentialsError, RequestError
from pyhilo.util.state import (
StateDict,
WebsocketDict,
WebsocketTransportsDict,
get_state,
Expand Down Expand Up @@ -75,7 +76,7 @@ def __init__(
self._backoff_refresh_lock_ws = asyncio.Lock()
self._request_retries = request_retries
self._state_yaml: str = DEFAULT_STATE_FILE
self.state: Dict[str, Any] = {}
self.state: StateDict = {}
self.async_request = self._wrap_request_method(self._request_retries)
self.device_attributes = get_device_attributes()
self.session: ClientSession = session
Expand Down

0 comments on commit b3c365f

Please sign in to comment.