-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.py
44 lines (36 loc) · 1.1 KB
/
const.py
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
"""Constants for the Outdoor Clothes integration."""
from collections import OrderedDict
DOMAIN = "clothing"
ATTR_FORECAST = "forecast"
CONF_HOURS = "hours"
CONF_SELECTOR_KEY = "config"
OPTION_JACKET = "jacket"
OPTION_PANTS = "pants"
OPTION_BOOTS = "boots"
OPTION_DAY = "day"
OPTION_HOUR = "hour"
MIN_CONFIDENCE = 0.2
DEFAULT_JACKET_CONFIG = OrderedDict(
[
("Winter Jacket", ["temperature < 5"]),
("Rain Jacket", ["precipitation_probability > 20", "temperature >= 5"]),
("Jacket", ["temperature < 15"]),
("Long Sleeves", ["temperature < 20", "temperature >= 15"]),
("Short Sleeves", ["temperature > 20"]),
]
)
DEFAULT_PANTS_CONFIG = OrderedDict(
[
("Snow Pants", ["temperature < -2"]),
("Rain Pants", ["precipitation_probability > 40"]),
("Pants", ["temperature >= -2", "temperature < 17"]),
("Shorts", ["temperature >= 17"]),
]
)
DEFAULT_BOOTS_CONFIG = OrderedDict(
[
("Winter Boots", ["temperature < 5"]),
("Rain Boots", ["precipitation_probability > 20"]),
("Shoes", ["temperature >= 5"]),
]
)