mirror of https://github.com/home-assistant/core
23 lines
492 B
Python
23 lines
492 B
Python
"""Define constants for the GDACS integration."""
|
|
|
|
from datetime import timedelta
|
|
|
|
from aio_georss_gdacs.consts import EVENT_TYPE_MAP
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "gdacs"
|
|
|
|
PLATFORMS = [Platform.GEO_LOCATION, Platform.SENSOR]
|
|
|
|
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())
|