From 4bdc0c7120c356ced9831f25eed079216b8c8a2d Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 13 Jan 2022 21:29:38 +0100 Subject: [PATCH] Adjust device_tracker type hints (#64054) Co-authored-by: epenet --- homeassistant/components/arris_tg2492lg/device_tracker.py | 2 +- homeassistant/components/tomato/device_tracker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/arris_tg2492lg/device_tracker.py b/homeassistant/components/arris_tg2492lg/device_tracker.py index fbeb36366fed..5bc157cbb6b6 100644 --- a/homeassistant/components/arris_tg2492lg/device_tracker.py +++ b/homeassistant/components/arris_tg2492lg/device_tracker.py @@ -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]}" diff --git a/homeassistant/components/tomato/device_tracker.py b/homeassistant/components/tomato/device_tracker.py index e48b61ead4f4..2d51bb51b536 100644 --- a/homeassistant/components/tomato/device_tracker.py +++ b/homeassistant/components/tomato/device_tracker.py @@ -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])