From e687ca781ff99cbeeae9c70510b6a338e21c46ea Mon Sep 17 00:00:00 2001
From: cdce8p <30130371+cdce8p@users.noreply.github.com>
Date: Sun, 1 Apr 2018 17:38:29 +0200
Subject: [PATCH] Add pincode fallback (#13587)

* Add pincode log statement

* Moved msg to show_setup_msg
---
 homeassistant/components/homekit/util.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/homeassistant/components/homekit/util.py b/homeassistant/components/homekit/util.py
index 2fa2ebd396a..af2c74d9c3c 100644
--- a/homeassistant/components/homekit/util.py
+++ b/homeassistant/components/homekit/util.py
@@ -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(
-- 
GitLab