Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Define constants for the GDACS integration."""
2 
3 from datetime import timedelta
4 
5 from aio_georss_gdacs.consts import EVENT_TYPE_MAP
6 
7 from homeassistant.const import Platform
8 
9 DOMAIN = "gdacs"
10 
11 PLATFORMS = [Platform.GEO_LOCATION, Platform.SENSOR]
12 
13 FEED = "feed"
14 
15 CONF_CATEGORIES = "categories"
16 
17 DEFAULT_ICON = "mdi:alert"
18 DEFAULT_RADIUS = 500.0
19 DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)
20 
21 # Fetch valid categories from integration library.
22 VALID_CATEGORIES = list(EVENT_TYPE_MAP.values())