diff --git a/homeassistant/components/arris_tg2492lg/device_tracker.py b/homeassistant/components/arris_tg2492lg/device_tracker.py index fbeb36366fed5..5bc157cbb6b67 100644 --- a/homeassistant/components/arris_tg2492lg/device_tracker.py +++ b/homeassistant/components/arris_tg2492lg/device_tracker.py @@ -24,7 +24,7 @@ ) -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 e48b61ead4f47..2d51bb51b5368 100644 --- a/homeassistant/components/tomato/device_tracker.py +++ b/homeassistant/components/tomato/device_tracker.py @@ -43,7 +43,7 @@ ) -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])