From e58228d8a55dc80bfe559efac03900813996a69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ab=C3=ADlio=20Costa?= Date: Sun, 8 Oct 2023 23:47:57 +0100 Subject: [PATCH] Move exceptions to errors.py; Bump to 2.3 (#18) --- idasen_ha/connection_manager.py | 6 ++---- idasen_ha/errors.py | 5 +++++ pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 idasen_ha/errors.py diff --git a/idasen_ha/connection_manager.py b/idasen_ha/connection_manager.py index 7f33d8d..595ecce 100644 --- a/idasen_ha/connection_manager.py +++ b/idasen_ha/connection_manager.py @@ -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: diff --git a/idasen_ha/errors.py b/idasen_ha/errors.py new file mode 100644 index 0000000..f601d3e --- /dev/null +++ b/idasen_ha/errors.py @@ -0,0 +1,5 @@ +"""Errors/Exceptions.""" + + +class AuthFailedError(Exception): + """Authentication Failed Exception.""" diff --git a/pyproject.toml b/pyproject.toml index 8dab11f..c9343b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [