* initial working version * support configured unit system and convert distance automatically * properly unloading integration when removed and stopping refreshes * ran isort * fixed pylint * introduced time filter of seven days into past * adding unit tests * fixed lint * removed unused code * added test case * added test case for config flow * fixed lint * fixed comment * removed unused test code * increased test coverage * fixed filtering by time * changed wording in config flow * reformatted with black * removed unused logger * fixed black * changed default mmi * reduced the options in the config flow form; fixed a few schema options and processing of data * moved unsubscribing signals * fixed minimum magnitude and modified tests * fixed radius in imperial unit system * increased test coverage * simplified code * fixed lint * changed string formatting; simplified code * removed unused strings * added translation
14 lines
314 B
Python
14 lines
314 B
Python
"""Define constants for the GeoNet NZ Quakes integration."""
|
|
from datetime import timedelta
|
|
|
|
DOMAIN = "geonetnz_quakes"
|
|
|
|
CONF_MINIMUM_MAGNITUDE = "minimum_magnitude"
|
|
CONF_MMI = "mmi"
|
|
|
|
FEED = "feed"
|
|
|
|
DEFAULT_MINIMUM_MAGNITUDE = 0.0
|
|
DEFAULT_MMI = 3
|
|
DEFAULT_RADIUS = 50.0
|
|
DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)
|