Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants."""
2 
3 from homeassistant.const import Platform
4 
5 DOMAIN = "broadlink"
6 
7 DOMAINS_AND_TYPES = {
8  Platform.CLIMATE: {"HYS"},
9  Platform.LIGHT: {"LB1", "LB2"},
10  Platform.REMOTE: {"RM4MINI", "RM4PRO", "RMMINI", "RMMINIB", "RMPRO"},
11  Platform.SELECT: {"HYS"},
12  Platform.SENSOR: {
13  "A1",
14  "MP1S",
15  "RM4MINI",
16  "RM4PRO",
17  "RMPRO",
18  "SP2S",
19  "SP3S",
20  "SP4",
21  "SP4B",
22  },
23  Platform.SWITCH: {
24  "BG1",
25  "MP1",
26  "MP1S",
27  "RM4MINI",
28  "RM4PRO",
29  "RMMINI",
30  "RMMINIB",
31  "RMPRO",
32  "SP1",
33  "SP2",
34  "SP2S",
35  "SP3",
36  "SP3S",
37  "SP4",
38  "SP4B",
39  },
40  Platform.TIME: {"HYS"},
41 }
42 DEVICE_TYPES = set.union(*DOMAINS_AND_TYPES.values())
43 
44 DEFAULT_PORT = 80
45 DEFAULT_TIMEOUT = 5