Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for buienradar component."""
2 
3 DOMAIN = "buienradar"
4 
5 DEFAULT_TIMEOUT = 60
6 DEFAULT_TIMEFRAME = 60
7 
8 DEFAULT_DIMENSION = 700
9 DEFAULT_DELTA = 600
10 
11 CONF_DELTA = "delta"
12 CONF_TIMEFRAME = "timeframe"
13 
14 SUPPORTED_COUNTRY_CODES = ["NL", "BE"]
15 DEFAULT_COUNTRY = "NL"
16 
17 SCHEDULE_OK = 10
18 """Schedule next call after (minutes)."""
19 SCHEDULE_NOK = 2
20 """When an error occurred, new call after (minutes)."""
21 
22 STATE_CONDITIONS = ["clear", "cloudy", "fog", "rainy", "snowy", "lightning"]
23 
24 STATE_DETAILED_CONDITIONS = [
25  "clear",
26  "partlycloudy",
27  "partlycloudy-fog",
28  "partlycloudy-light-rain",
29  "partlycloudy-rain",
30  "cloudy",
31  "fog",
32  "rainy",
33  "light-rain",
34  "light-snow",
35  "partlycloudy-light-snow",
36  "partlycloudy-snow",
37  "partlycloudy-lightning",
38  "snowy",
39  "snowy-rainy",
40  "lightning",
41 ]
42 
43 STATE_CONDITION_CODES = [
44  "a",
45  "b",
46  "j",
47  "o",
48  "r",
49  "c",
50  "p",
51  "d",
52  "n",
53  "f",
54  "h",
55  "k",
56  "l",
57  "q",
58  "w",
59  "m",
60  "u",
61  "i",
62  "v",
63  "t",
64  "g",
65  "s",
66 ]