core/homeassistant/components/gdacs/const.py

22 lines
491 B
Python
Raw Normal View History

"""Define constants for the GDACS integration."""
from datetime import timedelta
from aio_georss_gdacs.consts import EVENT_TYPE_MAP
2021-12-04 12:26:40 +00:00
from homeassistant.const import Platform
DOMAIN = "gdacs"
2021-12-04 12:26:40 +00:00
PLATFORMS = [Platform.SENSOR, Platform.GEO_LOCATION]
FEED = "feed"
CONF_CATEGORIES = "categories"
DEFAULT_ICON = "mdi:alert"
DEFAULT_RADIUS = 500.0
DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)
# Fetch valid categories from integration library.
VALID_CATEGORIES = list(EVENT_TYPE_MAP.values())