Skip to content

Commit

Permalink
Add pincode fallback (#13587)
Browse files Browse the repository at this point in the history
* Add pincode log statement

* Moved msg to show_setup_msg
  • Loading branch information
cdce8p authored and balloob committed Apr 1, 2018
1 parent ff72c5e commit e687ca7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/homekit/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
message = 'To setup Home Assistant in the Home App, enter the ' \
'following code:\n### {}'.format(pin)
hass.components.persistent_notification.create(
Expand Down

0 comments on commit e687ca7

Please sign in to comment.