Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Define constants for the GeoJSON events integration."""
2 
3 from __future__ import annotations
4 
5 from datetime import timedelta
6 from typing import Final
7 
8 from homeassistant.const import Platform
9 
10 DOMAIN: Final = "geo_json_events"
11 
12 PLATFORMS: Final = [Platform.GEO_LOCATION]
13 
14 ATTR_EXTERNAL_ID: Final = "external_id"
15 DEFAULT_RADIUS_IN_KM: Final = 20.0
16 DEFAULT_RADIUS_IN_M: Final = 20000.0
17 DEFAULT_UPDATE_INTERVAL: Final = timedelta(seconds=300)
18 SOURCE: Final = "geo_json_events"
19 
20 SIGNAL_DELETE_ENTITY: Final = "geo_json_events_delete_{}"
21 SIGNAL_UPDATE_ENTITY: Final = "geo_json_events_update_{}"