mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Use type safe import for device_tracker.PLATFORM_SCHEMA (#50860)
This commit is contained in:
committed by
GitHub
parent
73d7a754e8
commit
00208ff0d8
@@ -7,7 +7,7 @@ import voluptuous as vol
|
||||
|
||||
from homeassistant.components.device_tracker import (
|
||||
DOMAIN,
|
||||
PLATFORM_SCHEMA,
|
||||
PLATFORM_SCHEMA as PARENT_PLATFORM_SCHEMA,
|
||||
DeviceScanner,
|
||||
)
|
||||
from homeassistant.const import CONF_API_KEY, CONF_CLIENT_ID, CONF_HOST
|
||||
@@ -17,7 +17,7 @@ SCAN_INTERVAL = timedelta(seconds=120)
|
||||
|
||||
GRANT_TYPE = "client_credentials"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
vol.Required(CONF_HOST): cv.string,
|
||||
vol.Required(CONF_CLIENT_ID): cv.string,
|
||||
|
||||
Reference in New Issue
Block a user