This repository has been archived on 2024-05-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blinkpy/blinkpy/helpers/errors.py
T

16 lines
440 B
Python

"""Module to define error types."""
USERNAME = (0, "Username must be a string")
PASSWORD = (1, "Password must be a string")
AUTHENTICATE = (
2,
"Cannot authenticate since either password or username has not been set",
)
AUTH_TOKEN = (
3,
"Authentication header incorrect. Are you sure you received your token?",
)
REQUEST = (4, "Cannot perform request (get/post type incorrect)")
BLINK_ERRORS = [400, 404]