1
mirror of https://github.com/home-assistant/core synced 2024-07-12 07:21:24 +02:00

Adjust device_tracker type hints (#64054)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-13 21:29:38 +01:00 committed by GitHub
parent 867f8237e9
commit 4bdc0c7120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
)
def get_scanner(hass: HomeAssistant, config: ConfigType) -> DeviceScanner | None:
def get_scanner(hass: HomeAssistant, config: ConfigType) -> DeviceScanner:
"""Return the Arris device scanner."""
conf = config[DOMAIN]
url = f"http://{conf[CONF_HOST]}"

View File

@ -43,7 +43,7 @@ PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
)
def get_scanner(hass: HomeAssistant, config: ConfigType) -> DeviceScanner | None:
def get_scanner(hass: HomeAssistant, config: ConfigType) -> DeviceScanner:
"""Validate the configuration and returns a Tomato scanner."""
return TomatoDeviceScanner(config[DOMAIN])