Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek committed Feb 6, 2025
1 parent eb9a56c commit 01c4983
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pysmartthings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
DeviceStatus,
DeviceStatusBase,
)
from .errors import APIErrorDetail, APIInvalidGrant, APIResponseError
from .errors import APIErrorDetail, APIInvalidGrantError, APIResponseError
from .installedapp import (
InstalledApp,
InstalledAppEntity,
Expand Down Expand Up @@ -79,7 +79,7 @@
"DeviceStatusBase",
# error
"APIErrorDetail",
"APIInvalidGrant",
"APIInvalidGrantError",
"APIResponseError",
# installed app
"InstalledApp",
Expand Down
4 changes: 2 additions & 2 deletions src/pysmartthings/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from aiohttp import BasicAuth, ClientSession

from .errors import APIInvalidGrant, APIResponseError
from .errors import APIInvalidGrantError, APIResponseError

if TYPE_CHECKING:
from collections.abc import Sequence
Expand Down Expand Up @@ -423,7 +423,7 @@ async def generate_tokens(
data = {}
with suppress(Exception):
data = await resp.json()
raise APIInvalidGrant(data.get("error_description"))
raise APIInvalidGrantError(data.get("error_description"))
resp.raise_for_status()

@staticmethod
Expand Down

0 comments on commit 01c4983

Please sign in to comment.