Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add support for "lightbulbs" connected to Hue#142

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
lobeck wants to merge1 commit intoikalchev:dev
base:dev
Choose a base branch
Loading
fromlobeck:dev

Conversation

@lobeck
Copy link

This is a basic accessory discovering lightbulbs connected to a Hue Bridge and exposes them to HomeKit.

@codecov-io
Copy link

codecov-io commentedJul 27, 2018
edited
Loading

Codecov Report

Merging#142 intodev willnot change coverage.
The diff coverage isn/a.

@@           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

Copy link
Owner

@ikalchevikalchev left a 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)
Copy link
Owner

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

Copy link
Owner

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 uselogger = logging.getLogger(__name__)


self.id = id

def __setstate__(self, state):
Copy link
Owner

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)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ikalchevikalchevikalchev requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@lobeck@codecov-io@ikalchev

[8]ページ先頭

©2009-2025 Movatter.jp