Skip to content

Commit

Permalink
Move exceptions to errors.py; Bump to 2.3 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
abmantis authored Oct 8, 2023
1 parent 119de09 commit e58228d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions idasen_ha/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
from bleak.exc import BleakDBusError, BleakError
from idasen import IdasenDesk

_LOGGER = logging.getLogger(__name__)

from .errors import AuthFailedError

class AuthFailedError(Exception):
"""Authentication Failed Exception."""
_LOGGER = logging.getLogger(__name__)


class ConnectionManager:
Expand Down
5 changes: 5 additions & 0 deletions idasen_ha/errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Errors/Exceptions."""


class AuthFailedError(Exception):
"""Authentication Failed Exception."""
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "idasen-ha"
version = "2.2"
version = "2.3"
authors = [{name = "Abílio Costa", email = "amfcalt@gmail.com"}]
description = "Home Assistant helper lib for the IKEA Idasen Desk integration"
classifiers = [
Expand Down

0 comments on commit e58228d

Please sign in to comment.