2023-01-13 20:07:09 +01:00
|
|
|
"""Exceptions for the Reolink Camera integration."""
|
|
|
|
from homeassistant.exceptions import HomeAssistantError
|
|
|
|
|
|
|
|
|
2023-01-20 08:05:43 +01:00
|
|
|
class ReolinkException(HomeAssistantError):
|
|
|
|
"""BaseException for the Reolink integration."""
|
|
|
|
|
|
|
|
|
|
|
|
class ReolinkSetupException(ReolinkException):
|
|
|
|
"""Raised when setting up the Reolink host failed."""
|
|
|
|
|
|
|
|
|
2023-01-20 22:27:59 +01:00
|
|
|
class ReolinkWebhookException(ReolinkException):
|
|
|
|
"""Raised when registering the reolink webhook failed."""
|
|
|
|
|
|
|
|
|
2023-01-20 08:05:43 +01:00
|
|
|
class UserNotAdmin(ReolinkException):
|
2023-01-13 20:07:09 +01:00
|
|
|
"""Raised when user is not admin."""
|