mirror of
https://github.com/home-assistant/core
synced 2024-08-28 03:36:46 +02:00
![Christopher Bailey](/assets/img/avatar_default.png)
* Renames various usages of UniFi to better indentify only UniFi Network * Apply suggestions from code review Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com> * Missed renames * Updates more locations * Removes instances of application/controller * Missed a spot * Updates all UniFi Controller instances * Fixes typo * Reverts changes to translations Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
27 lines
596 B
Python
27 lines
596 B
Python
"""Errors for the UniFi Network integration."""
|
|
from homeassistant.exceptions import HomeAssistantError
|
|
|
|
|
|
class UnifiException(HomeAssistantError):
|
|
"""Base class for UniFi Network exceptions."""
|
|
|
|
|
|
class AlreadyConfigured(UnifiException):
|
|
"""Controller is already configured."""
|
|
|
|
|
|
class AuthenticationRequired(UnifiException):
|
|
"""Unknown error occurred."""
|
|
|
|
|
|
class CannotConnect(UnifiException):
|
|
"""Unable to connect to the controller."""
|
|
|
|
|
|
class LoginRequired(UnifiException):
|
|
"""Integration got logged out."""
|
|
|
|
|
|
class UserLevel(UnifiException):
|
|
"""User level too low."""
|