* first version of new integration * moved icon to shared consts * added unit tests * transformed from geolocation to sensor integration * alert level is now the state of the sensor * adopted unit tests * fixed comment * keep all sensors registered even if the feed update fails intermittently * bumped version of upstream library * bumped version of integration library * regenerated requirements * bumped version of integration library * bumped version of integration library * fixed generated file * removed commented out code * regenerated config flow file * update to latest integration library version * simplified code * removed debug log statement * simplified code structure * defined constant * use core interfaces * moved test and fixture * sorted imports * simplified patching * moved fixture to central config file
19 lines
503 B
Python
19 lines
503 B
Python
"""Define constants for the GeoNet NZ Volcano integration."""
|
|
from datetime import timedelta
|
|
|
|
DOMAIN = "geonetnz_volcano"
|
|
|
|
FEED = "feed"
|
|
|
|
ATTR_ACTIVITY = "activity"
|
|
ATTR_DISTANCE = "distance"
|
|
ATTR_EXTERNAL_ID = "external_id"
|
|
ATTR_HAZARDS = "hazards"
|
|
|
|
# Icon alias "mdi:mountain" not working.
|
|
DEFAULT_ICON = "mdi:image-filter-hdr"
|
|
DEFAULT_RADIUS = 50.0
|
|
DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)
|
|
|
|
SIGNAL_NEW_SENSOR = "geonetnz_volcano_new_sensor_{}"
|
|
SIGNAL_UPDATE_ENTITY = "geonetnz_volcano_update_{}"
|