Use local latitude and longitude constants in locative (#191223)

This commit is contained in:
epenet
2026-11-08 12:57:04 +01:00
committed by GitHub
parent 710143e3f7
commit 6bab745691
@@ -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"