forked from signalkraft/myPyllant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.py
More file actions
72 lines (72 loc) · 2.27 KB
/
const.py
File metadata and controls
72 lines (72 loc) · 2.27 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
AUTH_BASE_URL = "https://identity.vaillant-group.com/auth/realms"
LOGIN_URL = AUTH_BASE_URL + "/{realm}/login-actions/authenticate"
AUTHENTICATE_URL = AUTH_BASE_URL + "/{realm}/protocol/openid-connect/auth"
TOKEN_URL = AUTH_BASE_URL + "/{realm}/protocol/openid-connect/token"
API_URL_BASE = {
"tli": "https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1",
"vrc700": "https://api.vaillant-group.com/service-connected-control/vrc700/v1",
}
CLIENT_ID = "myvaillant"
BRANDS = {
"vaillant": "Vaillant",
"sdbg": "Saunier Duval",
"bulex": "Bulex",
}
DEFAULT_BRAND = "vaillant"
COUNTRIES = {
"vaillant": {
"albania": "Albania",
"austria": "Austria",
"belgium": "Belgium",
"bulgaria": "Bulgaria",
"croatia": "Croatia",
"czechrepublic": "Czechia",
"denmark": "Denmark",
"estonia": "Estonia",
"finland": "Finland",
"france": "France",
"georgia": "Georgia",
"germany": "Germany",
"greece": "Greece",
"hungary": "Hungary",
"italy": "Italy",
"latvia": "Latvia",
"lithuania": "Lithuania",
"luxembourg": "Luxembourg",
"netherlands": "Netherlands",
"norway": "Norway",
"poland": "Poland",
"portugal": "Portugal",
"romania": "Romania",
"serbia": "Serbia",
"slovakia": "Slovakia",
"slovenia": "Slovenia",
"spain": "Spain",
"sweden": "Sweden",
"switzerland": "Switzerland",
"turkiye": "Turkiye",
"ukraine": "Ukraine",
"unitedkingdom": "United Kingdom",
"uzbekistan": "Uzbekistan",
},
"sdbg": {
"austria": "Austria",
"czechrepublic": "Czechia",
"finland": "Finland",
"france": "France",
"greece": "Greece",
"hungary": "Hungary",
"italy": "Italy",
"lithuania": "Lithuania",
"luxembourg": "Luxembourg",
"poland": "Poland",
"portugal": "Portugal",
"romania": "Romania",
"slovakia": "Slovakia",
"spain": "Spain",
},
}
ALL_COUNTRIES = {c: n for d in COUNTRIES.values() for c, n in d.items()}
DEFAULT_HOLIDAY_DURATION = 365 # in days
DEFAULT_QUICK_VETO_DURATION = 3.0 # in hours
DEFAULT_CONTROL_IDENTIFIER = "tli"