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:
parent
867f8237e9
commit
4bdc0c7120
@ -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]}"
|
||||
|
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user