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
This commit is contained in:
parent
9214934d47
commit
6988fe783c
22 changed files with 1288 additions and 324 deletions
22
homeassistant/components/axis/errors.py
Normal file
22
homeassistant/components/axis/errors.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
"""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."""
|
Loading…
Add table
Add a link
Reference in a new issue