hass-core/homeassistant/components/geo_json_events/const.py
Malte Franken 0bf652ca96
Refactor constants in geo_json_events integration (#89912)
move constants to separate file
2023-03-20 13:26:38 +01:00

15 lines
465 B
Python

"""Define constants for the GeoJSON events integration."""
from __future__ import annotations
from datetime import timedelta
from typing import Final
DOMAIN: Final = "geo_json_events"
ATTR_EXTERNAL_ID: Final = "external_id"
DEFAULT_RADIUS_IN_KM: Final = 20.0
DEFAULT_SCAN_INTERVAL: Final = timedelta(minutes=5)
SOURCE: Final = "geo_json_events"
SIGNAL_DELETE_ENTITY: Final = "geo_json_events_delete_{}"
SIGNAL_UPDATE_ENTITY: Final = "geo_json_events_update_{}"