def get_scanner(hass, config):
 scanner = AsusWrtDeviceScanner(config[DOMAIN])
 return (scanner if scanner.success_init else None)

def get_scanner ( hass , config ) : scanner = AsusWrtDeviceScanner ( config [ DOMAIN ] ) return ( scanner if scanner . success_init else None )
validate the configuration and return an actiontec scanner .