mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Adjust device_tracker type hints (#64054)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -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])
|
||||
|
||||
|
Reference in New Issue
Block a user