A while ago, I wrote a component for syncthru supporting printers and submitted it to the core project. The component uses a JSON-REST-API present in many Samsung printers, however not all of them. I recently updated the underlying python package to also support printers that have only a web-interface available (also called syncthru), and to web-scraping to obtain some useful values. However, this violates the core development guides and hence cannot be included in the standard component.
Since the underlying package is already upgraded, I would like to create a custom component that makes use of the web-scraping capabilities. Since the component code is also already written, my first idea would be to simply copy the code from the built-in syncthru component into a standalone custom component repository. My main question is: is this legal/ are there legal ways to do it? What is the best way to inform the HA team about it and which licenses should I use? How should I refer to the origin of the code?
Any suggestions? Thanks in advance for any input.