Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the WeatherflowCloud integration."""
2 
3 import logging
4 
5 DOMAIN = "weatherflow_cloud"
6 LOGGER = logging.getLogger(__package__)
7 
8 ATTR_ATTRIBUTION = "Weather data delivered by WeatherFlow/Tempest REST Api"
9 MANUFACTURER = "WeatherFlow"
10 
11 STATE_MAP = {
12  "clear-day": "sunny",
13  "clear-night": "clear-night",
14  "cloudy": "cloudy",
15  "foggy": "fog",
16  "partly-cloudy-day": "partlycloudy",
17  "partly-cloudy-night": "partlycloudy",
18  "possibly-rainy-day": "rainy",
19  "possibly-rainy-night": "rainy",
20  "possibly-sleet-day": "snowy-rainy",
21  "possibly-sleet-night": "snowy-rainy",
22  "possibly-snow-day": "snowy",
23  "possibly-snow-night": "snowy",
24  "possibly-thunderstorm-day": "lightning-rainy",
25  "possibly-thunderstorm-night": "lightning-rainy",
26  "rainy": "rainy",
27  "sleet": "snowy-rainy",
28  "snow": "snowy",
29  "thunderstorm": "lightning",
30  "windy": "windy",
31 }