mirror of
https://github.com/home-assistant/core
synced 2024-08-31 05:57:13 +02:00
![Robert Svensson](/assets/img/avatar_default.png)
* New way to identify role, compatible with standalone controller or as part of unifios * Remove error * Bump dependency to v22 * Remove unused import
27 lines
576 B
Python
27 lines
576 B
Python
"""Errors for the UniFi component."""
|
|
from homeassistant.exceptions import HomeAssistantError
|
|
|
|
|
|
class UnifiException(HomeAssistantError):
|
|
"""Base class for UniFi 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):
|
|
"""Component got logged out."""
|
|
|
|
|
|
class UserLevel(UnifiException):
|
|
"""User level too low."""
|