Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Define constants for the GeoNet NZ Quakes integration."""
2 
3 from datetime import timedelta
4 
5 from homeassistant.const import Platform
6 
7 DOMAIN = "geonetnz_quakes"
8 
9 PLATFORMS = [Platform.GEO_LOCATION, Platform.SENSOR]
10 
11 CONF_MINIMUM_MAGNITUDE = "minimum_magnitude"
12 CONF_MMI = "mmi"
13 
14 FEED = "feed"
15 
16 DEFAULT_FILTER_TIME_INTERVAL = timedelta(days=7)
17 DEFAULT_MINIMUM_MAGNITUDE = 0.0
18 DEFAULT_MMI = 3
19 DEFAULT_RADIUS = 50.0
20 DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)