Use local latitude and longitude constants in mqtt_json (#191224)

This commit is contained in:
epenet
2026-11-08 12:56:24 +01:00
committed by GitHub
parent 4089b7b723
commit 710143e3f7
@@ -11,19 +11,15 @@ from homeassistant.components.device_tracker import (
AsyncSeeCallback,
)
from homeassistant.components.mqtt import CONF_QOS
from homeassistant.const import (
ATTR_BATTERY_LEVEL,
ATTR_GPS_ACCURACY,
ATTR_LATITUDE,
ATTR_LONGITUDE,
CONF_DEVICES,
)
from homeassistant.const import ATTR_BATTERY_LEVEL, ATTR_GPS_ACCURACY, CONF_DEVICES
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
_LOGGER = logging.getLogger(__name__)
ATTR_LATITUDE = "latitude"
ATTR_LONGITUDE = "longitude"
GPS_JSON_PAYLOAD_SCHEMA = probatio.Schema(
{
probatio.Required(ATTR_LATITUDE): probatio.Coerce(float),