-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconst.py
More file actions
42 lines (33 loc) · 1.09 KB
/
const.py
File metadata and controls
42 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""Constants for Dyson Python library."""
from enum import Enum, auto
DEVICE_TYPE_360_EYE = "N223"
DEVICE_TYPE_PURE_COOL_LINK = "475"
DEVICE_TYPE_PURE_COOL_LINK_DESK = "469"
DEVICE_TYPE_PURE_COOL = "438"
DEVICE_TYPE_PURE_COOL_DESK = "520"
DEVICE_TYPE_PURE_HUMIDITY_COOL = "358"
DEVICE_TYPE_PURE_HOT_COOL_LINK = "455"
DEVICE_TYPE_PURE_HOT_COOL = "527"
DEVICE_TYPE_NAMES = {
DEVICE_TYPE_360_EYE: "360 Eye robot vacuum",
DEVICE_TYPE_PURE_COOL: "Pure Cool",
DEVICE_TYPE_PURE_COOL_DESK: "Pure Cool Desk",
DEVICE_TYPE_PURE_COOL_LINK: "Pure Cool Link",
DEVICE_TYPE_PURE_COOL_LINK_DESK: "Pure Cool Link Desk",
DEVICE_TYPE_PURE_HOT_COOL: "Pure Hot+Cool",
DEVICE_TYPE_PURE_HOT_COOL_LINK: "Pure Hot+Cool Link",
DEVICE_TYPE_PURE_HUMIDITY_COOL: "Pure Humidity+Cool",
}
ENVIRONMENTAL_OFF = -1
ENVIRONMENTAL_INIT = -2
ENVIRONMENTAL_FAIL = -3
class MessageType(Enum):
"""Update message type."""
STATE = auto()
ENVIRONMENTAL = auto()
class AirQualityTarget(Enum):
"""Air Quality Target."""
GOOD = "0004"
SENSITIVE = "0003"
DEFAULT = "0002"
VERY_SENSITIVE = "0001"