Skip to content
Snippets Groups Projects
Commit e687ca78 authored by cdce8p's avatar cdce8p Committed by Paulus Schoutsen
Browse files

Add pincode fallback (#13587)

* Add pincode log statement

* Moved msg to show_setup_msg
parent ff72c5e4
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment