Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tchao Bye bye the token file #738

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/freebox_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
# importlib.metadata available from Python 3.8 use importlib_metadata for
# earlier versions.
try:
from importlib.metadata import version, PackageNotFoundError
from importlib.metadata import PackageNotFoundError, version
except ImportError: # pragma: no cover
from importlib_metadata import version, PackageNotFoundError # type: ignore
from importlib_metadata import PackageNotFoundError, version # type: ignore


try:
__version__: str = version(__name__)
except PackageNotFoundError: # pragma: no cover
__version__ = "unknown"

from freebox_api.aiofreepybox import Freepybox
from .aiofreepybox import Freepybox
from .exceptions import FreeboxException

__all__ = ["Freepybox"]
__all__ = ["Freepybox", "FreeboxException"]
12 changes: 6 additions & 6 deletions src/freebox_api/access.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import hmac
import json
import logging
from typing import Any, Mapping
from typing import Dict
from typing import Optional
from typing import Any, Dict, Mapping, Optional
from urllib.parse import urljoin

from aiohttp import ClientSession

from freebox_api.exceptions import AuthorizationError
from freebox_api.exceptions import HttpRequestError
from freebox_api.exceptions import InsufficientPermissionsError
from .exceptions import (
AuthorizationError,
HttpRequestError,
InsufficientPermissionsError,
)

logger = logging.getLogger(__name__)

Expand Down
Loading