Debian Client Support in Foreman/Katello

Problem:
Register Debian Client to Foreman/Katello
Expected outcome:
Debian Client registered in Foreman/Katello
Foreman and Proxy versions:
Foreman 1.22.0
Foreman and Proxy plugin versions:
Katello 3.12
Other relevant data:
I have created a Debian Stretch Repository inside Foreman, built a Content View , created an Activation Key with this Content View and tried to add a debian 9 System to foreman using https://pypi.org/project/deb-subscription/ with
deb_subscription --fqdn --organization --location --activation_key

This results in the following error:
Traceback (most recent call last):
File “/usr/local/bin/deb_subscription”, line 112, in
entry = ‘deb%shttps://%s/pulp/deb/%s/%s/%s/%s/%s/%s %s %s\n’ % (trusted, KatelloBase.fqdn, org, environment_name, content_view_name, repository[‘product_type’], repository[‘product’][‘name’], repository[‘name’], release, components)
KeyError: ‘product_type’

Is there any other recommended way to register Debian Clients to Foreman ?
How far is debian supported by foreman anyway ?


logs

Never tried deb-subscription. You should use https://github.com/candlepin/subscription-manager
In this repository, the debian pkgs build instructions are available under contrib/debian.