2020-02-06 10:32:30 +00:00
|
|
|
"""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
|
|
|
|
|
2020-02-06 10:32:30 +00:00
|
|
|
DOMAIN = "gdacs"
|
|
|
|
|
2024-01-16 08:47:53 +00:00
|
|
|
PLATFORMS = [Platform.GEO_LOCATION, Platform.SENSOR]
|
2020-02-06 10:32:30 +00:00
|
|
|
|
|
|
|
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())
|