-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for "lightbulbs" connected to Hue #142
base: dev
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #142 +/- ##
=======================================
Coverage 52.08% 52.08%
=======================================
Files 15 15
Lines 1342 1342
Branches 138 138
=======================================
Hits 699 699
Misses 628 628
Partials 15 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi and thanks for the contrib. Also sorry for the delay! Can you leave just the accessory in this file so that users can just use the main.py and import this module?
from pyhap.accessory_driver import AccessoryDriver | ||
from pyhap.const import CATEGORY_LIGHTBULB | ||
|
||
logging.basicConfig(level=logging.INFO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe leave this to the module that starts HAP, e.g. the main.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you decide to remove it, can you use logger = logging.getLogger(__name__)
|
||
self.id = id | ||
|
||
def __setstate__(self, state): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is not needed now (if you don't plan to pickle the accessory)
This is a basic accessory discovering lightbulbs connected to a Hue Bridge and exposes them to HomeKit.