1
mirror of https://github.com/home-assistant/core synced 2024-10-13 14:52:10 +02:00
ha-core/homeassistant/components/axis/errors.py
Robert Svensson 6988fe783c
Axis config flow (#18543)
* Initial draft

* Add tests for init
Fix hound comments

* Add tests for device
Change parameter handling to make device easier to test

* Remove superfluous functionality per Martins request

* Fix hound comments

* Embedded platforms

* Fix device import

* Config flow retry

* Options default values will be set automatically to options in config entry before component can be used

* Clean up init
Add populate options
Fix small issues in config flow
Add tests covering init

* Improve device tests

* Add config flow tests

* Fix hound comments

* Rebase miss

* Initial tests for binary sensors

* Clean up
More binary sensor tests

* Hound comments

* Add camera tests

* Fix initial state of sensors

* Bump dependency to v17

* Fix pylint and flake8

* Fix comments
2019-03-24 16:16:50 +01:00

23 lines
486 B
Python

"""Errors for the Axis component."""
from homeassistant.exceptions import HomeAssistantError
class AxisException(HomeAssistantError):
"""Base class for Axis exceptions."""
class AlreadyConfigured(AxisException):
"""Device is already configured."""
class AuthenticationRequired(AxisException):
"""Unknown error occurred."""
class CannotConnect(AxisException):
"""Unable to connect to the device."""
class UserLevel(AxisException):
"""User level too low."""