mirror of
https://github.com/home-assistant/core.git
synced 2026-12-06 13:45:55 -04:00
Use local latitude and longitude constants in locative (#191223)
This commit is contained in:
@@ -8,14 +8,7 @@ import probatio
|
||||
|
||||
from homeassistant.components import webhook
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
ATTR_ID,
|
||||
ATTR_LATITUDE,
|
||||
ATTR_LONGITUDE,
|
||||
CONF_WEBHOOK_ID,
|
||||
STATE_NOT_HOME,
|
||||
Platform,
|
||||
)
|
||||
from homeassistant.const import ATTR_ID, CONF_WEBHOOK_ID, STATE_NOT_HOME, Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import config_entry_flow, config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
@@ -30,6 +23,8 @@ type LocativeConfigEntry = ConfigEntry[set[str]]
|
||||
PLATFORMS = [Platform.DEVICE_TRACKER]
|
||||
|
||||
ATTR_DEVICE_ID = "device"
|
||||
ATTR_LATITUDE = "latitude"
|
||||
ATTR_LONGITUDE = "longitude"
|
||||
ATTR_TRIGGER = "trigger"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user