-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathconst.js
61 lines (56 loc) · 1.52 KB
/
const.js
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
const cardinalDirectionsIcon = [
'arrow-down', 'arrow-bottom-left', 'arrow-left',
'arrow-top-left', 'arrow-up', 'arrow-top-right',
'arrow-right', 'arrow-bottom-right', 'arrow-down'
];
const weatherIcons = {
'clear-night': 'hass:weather-night',
'cloudy': 'hass:weather-cloudy',
'exceptional': 'mdi:alert-circle-outline',
'fog': 'hass:weather-fog',
'hail': 'hass:weather-hail',
'lightning': 'hass:weather-lightning',
'lightning-rainy': 'hass:weather-lightning-rainy',
'partlycloudy': 'hass:weather-partly-cloudy',
'pouring': 'hass:weather-pouring',
'rainy': 'hass:weather-rainy',
'snowy': 'hass:weather-snowy',
'snowy-rainy': 'hass:weather-snowy-rainy',
'sunny': 'hass:weather-sunny',
'windy': 'hass:weather-windy',
'windy-variant': 'hass:weather-windy-variant'
};
const weatherIconsDay = {
'clear-night': 'clear-night',
'cloudy': 'cloudy',
'exceptional': 'exceptional',
'fog': 'fog',
'hail': 'hail',
'lightning': 'lightning',
'lightning-rainy': 'lightning-rain',
'partlycloudy': 'partlycloudy-day',
'pouring': 'pouring',
'rainy': 'rain',
'snowy': 'snow',
'snowy-rainy': 'sleet',
'sunny': 'clear-day',
'windy': 'wind',
'windy-variant': 'wind',
};
const weatherIconsNight = {
...weatherIconsDay,
'sunny': 'clear-night',
'partlycloudy': 'partlycloudy-night',
};
const WeatherEntityFeature = {
FORECAST_DAILY: 1,
FORECAST_HOURLY: 2,
FORECAST_TWICE_DAILY: 4,
};
export {
cardinalDirectionsIcon,
weatherIcons,
weatherIconsDay,
weatherIconsNight,
WeatherEntityFeature
};