core/homeassistant/components/geonetnz_quakes/const.py

20 lines
459 B
Python
Raw Normal View History

"""Define constants for the GeoNet NZ Quakes integration."""
from datetime import timedelta
2021-12-04 12:26:40 +00:00
from homeassistant.const import Platform
DOMAIN = "geonetnz_quakes"
2021-12-04 12:26:40 +00:00
PLATFORMS = [Platform.SENSOR, Platform.GEO_LOCATION]
CONF_MINIMUM_MAGNITUDE = "minimum_magnitude"
CONF_MMI = "mmi"
FEED = "feed"
DEFAULT_FILTER_TIME_INTERVAL = timedelta(days=7)
DEFAULT_MINIMUM_MAGNITUDE = 0.0
DEFAULT_MMI = 3
DEFAULT_RADIUS = 50.0
DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)