Closed rbdubz3 closed 5 years ago
I'm not a repo owner, but I believe that should be a pull request not an opened issue :)
yeah - apologies if my git-etiquette is bad.. I actually tried to create a branch for this purpose but didn't have permissions. I guess I should fork it and submit a PR - does that sound right?
Yes, you have to fork the repo, make the changes and create a PR back to this repo.
Thanks!
will submit as a PR
This is a minor feature request to support an external LogHandler in order to output logging info for debugging/etc.. I am using this library with a home-grown plugin for Indigo Domotics ( https://github.com/rbdubz3/sylvania-lightify-indigo ).
See sample code snippets below - updated constructor plus new method to allow changing the log level:
class Lightify: """ main osram lightify class """ def init(self, host, new_device_types=None, loghandler=None): ....... ....... ....... 'max_temp': 6500 } } }} """ self.device_types = DEVICE_TYPES.copy() self.device_types.update(new_device_types or {})
....... ....... .......