mirror of
https://github.com/home-assistant/core.git
synced 2025-05-17 04:19:16 +00:00

* Use f-strings in integrations starting with F * Use f-strings in tests for integrations starting with F * Use f-strings in integrations starting with G * Use f-strings in tests for integrations starting with G * Fix pylint error * Fix broken test
20 lines
435 B
Python
20 lines
435 B
Python
"""Define constants for the GDACS integration."""
|
|
from datetime import timedelta
|
|
|
|
from aio_georss_gdacs.consts import EVENT_TYPE_MAP
|
|
|
|
DOMAIN = "gdacs"
|
|
|
|
PLATFORMS = ("sensor", "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())
|