Skip to content
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 pincode fallback #13587

Merged
merged 2 commits into from Apr 1, 2018
Merged

Add pincode fallback #13587

merged 2 commits into from Apr 1, 2018

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Mar 31, 2018

Description:

Added fallback solution to find the pincode for HomeKit.

Related issue: fixes #13566

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#5067

Example entry for configuration.yaml (if applicable):

logger:
  logs:
    homeassistant.components.homekit: info

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • Documentation added/updated in home-assistant.github.io

@@ -36,6 +36,7 @@ def validate_entity_config(values):
def show_setup_message(bridge, hass):
"""Display persistent notification with setup information."""
pin = bridge.pincode.decode()
_LOGGER.info('Pincode: %s', pin)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Info is the default logging message. Do we really always want to log it?

Copy link
Member Author

@cdce8p cdce8p Apr 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is in show_setup_message, it is only being logged if HomeKit isn't paired. If I set this to debug, it might become confusing since that would generate quite a lot of other messages.

@balloob balloob merged commit cd96d7b into home-assistant:dev Apr 1, 2018
balloob pushed a commit that referenced this pull request Apr 1, 2018
* Add pincode log statement

* Moved msg to show_setup_msg
@balloob balloob mentioned this pull request Apr 1, 2018
@cdce8p cdce8p deleted the homekit-pincode branch April 1, 2018 23:38
@home-assistant home-assistant locked and limited conversation to collaborators Jul 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Homekit Pin: How to find it?
4 participants