diff --git a/CHANGELOG.md b/CHANGELOG.md index c774a46c..2bdfdf9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## 2.0.2 +- Raise exception when setup doesn't complete + ## 2.0.1 - Allow users without monthly monitoring to get system status diff --git a/src/setup.py b/src/setup.py index 2678e836..dbd8642d 100644 --- a/src/setup.py +++ b/src/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='simplisafe-python', - version='2.0.1', + version='2.0.2', description='Python 3 support for SimpliSafe alarm', url='https://github.com/w1ll1am23/simplisafe-python', author='William Scanlon', diff --git a/src/simplipy/api.py b/src/simplipy/api.py index 58ec45fa..3e6cf07c 100644 --- a/src/simplipy/api.py +++ b/src/simplipy/api.py @@ -53,6 +53,7 @@ def __init__(self, username, password, basic_auth=None): _LOGGER.info("Setup complete") else: _LOGGER.error("Failed to complete setup") + raise SimpliSafeAPIException("Failed to complete setup") def _get_token(self): """ @@ -290,3 +291,6 @@ def get_systems(self): _LOGGER.error("Empty system state") return systems + +class SimpliSafeAPIException(Exception): + pass