Use platform enum (2) [E-G] (#60933)
This commit is contained in:
parent
79cd281c48
commit
cd1b923e16
42 changed files with 150 additions and 91 deletions
|
@ -4,11 +4,8 @@ from http import HTTPStatus
|
|||
from aiohttp import web
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.device_tracker import (
|
||||
ATTR_BATTERY,
|
||||
DOMAIN as DEVICE_TRACKER,
|
||||
)
|
||||
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE, CONF_WEBHOOK_ID
|
||||
from homeassistant.components.device_tracker import ATTR_BATTERY
|
||||
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE, CONF_WEBHOOK_ID, Platform
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
|
@ -24,7 +21,7 @@ from .const import (
|
|||
DOMAIN,
|
||||
)
|
||||
|
||||
PLATFORMS = [DEVICE_TRACKER]
|
||||
PLATFORMS = [Platform.DEVICE_TRACKER]
|
||||
|
||||
TRACKER_UPDATE = f"{DOMAIN}_tracker_update"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue