* Initial commit * Fix strings * Fix unit system * Add config_flow tests * Simplify tests * More tests * Update comment * Fix pylint error * Run gen_requirements_all * Fix pyline error * Round precipitation and precipitation probability * Bump backend library * Bump backend library * Add undo update listener on unload * Add translation key for invalid_api_key * Remove entity_registry_enabled_default property * Suggested change * Bump library
24 lines
656 B
Python
24 lines
656 B
Python
"""Constants for AccuWeather integration."""
|
|
ATTRIBUTION = "Data provided by AccuWeather"
|
|
ATTR_FORECAST = CONF_FORECAST = "forecast"
|
|
COORDINATOR = "coordinator"
|
|
DOMAIN = "accuweather"
|
|
UNDO_UPDATE_LISTENER = "undo_update_listener"
|
|
|
|
CONDITION_CLASSES = {
|
|
"clear-night": [33, 34, 37],
|
|
"cloudy": [7, 8, 38],
|
|
"exceptional": [24, 30, 31],
|
|
"fog": [11],
|
|
"hail": [25],
|
|
"lightning": [15],
|
|
"lightning-rainy": [16, 17, 41, 42],
|
|
"partlycloudy": [4, 6, 35, 36],
|
|
"pouring": [18],
|
|
"rainy": [12, 13, 14, 26, 39, 40],
|
|
"snowy": [19, 20, 21, 22, 23, 43, 44],
|
|
"snowy-rainy": [29],
|
|
"sunny": [1, 2, 3, 5],
|
|
"windy": [32],
|
|
}
|