mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00: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."""
|
"""Return the Arris device scanner."""
|
||||||
conf = config[DOMAIN]
|
conf = config[DOMAIN]
|
||||||
url = f"http://{conf[CONF_HOST]}"
|
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."""
|
"""Validate the configuration and returns a Tomato scanner."""
|
||||||
return TomatoDeviceScanner(config[DOMAIN])
|
return TomatoDeviceScanner(config[DOMAIN])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user