rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
266 stars 53 forks source link

Allow use as a library #40

Closed bobzomer closed 4 years ago

bobzomer commented 4 years ago

I would like to use your project as a library to create a Domoticz plugin. Unfortunately, the get_status methods just print the answer without returning it.

rgerganov commented 4 years ago

Thank you for your PR but I have decided to merge @GeorgeSG work which splits the client into separate modules. Now you should be able to import and instantiate the relevant client and then call get_status or set_values.

Please let us know if this work for your use case and file an issue if it doesn't. Thanks!