mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Use core constants for fleetgo (#46200)
This commit is contained in:
parent
5a4e1eeb0e
commit
54dce1c505
@ -9,6 +9,7 @@ from homeassistant.components.device_tracker import PLATFORM_SCHEMA
|
|||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_CLIENT_ID,
|
CONF_CLIENT_ID,
|
||||||
CONF_CLIENT_SECRET,
|
CONF_CLIENT_SECRET,
|
||||||
|
CONF_INCLUDE,
|
||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
CONF_USERNAME,
|
CONF_USERNAME,
|
||||||
)
|
)
|
||||||
@ -17,8 +18,6 @@ from homeassistant.helpers.event import track_utc_time_change
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONF_INCLUDE = "include"
|
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||||
{
|
{
|
||||||
vol.Required(CONF_USERNAME): cv.string,
|
vol.Required(CONF_USERNAME): cv.string,
|
||||||
@ -44,7 +43,6 @@ class FleetGoDeviceScanner:
|
|||||||
|
|
||||||
def __init__(self, config, see):
|
def __init__(self, config, see):
|
||||||
"""Initialize FleetGoDeviceScanner."""
|
"""Initialize FleetGoDeviceScanner."""
|
||||||
|
|
||||||
self._include = config.get(CONF_INCLUDE)
|
self._include = config.get(CONF_INCLUDE)
|
||||||
self._see = see
|
self._see = see
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user