1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Use core constants for fleetgo (#46200)

This commit is contained in:
tkdrob 2021-02-08 05:47:30 -05:00 committed by GitHub
parent 5a4e1eeb0e
commit 54dce1c505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ from homeassistant.components.device_tracker import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_CLIENT_ID,
CONF_CLIENT_SECRET,
CONF_INCLUDE,
CONF_PASSWORD,
CONF_USERNAME,
)
@ -17,8 +18,6 @@ from homeassistant.helpers.event import track_utc_time_change
_LOGGER = logging.getLogger(__name__)
CONF_INCLUDE = "include"
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{
vol.Required(CONF_USERNAME): cv.string,
@ -44,7 +43,6 @@ class FleetGoDeviceScanner:
def __init__(self, config, see):
"""Initialize FleetGoDeviceScanner."""
self._include = config.get(CONF_INCLUDE)
self._see = see