Use type safe import for device_tracker.PLATFORM_SCHEMA (#50860)
This commit is contained in:
parent
73d7a754e8
commit
00208ff0d8
34 changed files with 84 additions and 68 deletions
|
@ -6,7 +6,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_HOST, HTTP_OK
|
||||
|
@ -16,7 +16,7 @@ DEFAULT_TIMEOUT = 10
|
|||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string})
|
||||
PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string})
|
||||
|
||||
|
||||
def get_scanner(hass, config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue