Use type safe import for device_tracker.PLATFORM_SCHEMA (#50860)

This commit is contained in:
Ruslan Sayfutdinov 2021-05-21 12:08:40 +01:00 committed by GitHub
parent 73d7a754e8
commit 00208ff0d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 84 additions and 68 deletions

View file

@ -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):