File: errors.py

package info (click to toggle)
python-aioskybell 23.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: python: 1,422; makefile: 22
file content (19 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Errors for AIOSkybell."""
USERNAME = (0, "Username must be a non-empty string")

PASSWORD = (1, "Password must be a non-empty string")

LOGIN_FAILED = (2, "Login failed")

REQUEST = (3, "Request failed")

INVALID_SETTING = (4, "Setting is not valid")

INVALID_SETTING_VALUE = (5, "Value for setting is not valid")

COLOR_VALUE_NOT_VALID = (
    6,
    "RGB color value is not a list of three integers between 0 and 255",
)

COLOR_INTENSITY_NOT_VALID = (7, "Intensity value is not a valid integer")