mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add pincode fallback (#13587)
* Add pincode log statement * Moved msg to show_setup_msg
This commit is contained in:
parent
dee47d50ec
commit
cd96d7b2ec
@ -36,6 +36,7 @@ def validate_entity_config(values):
|
|||||||
def show_setup_message(bridge, hass):
|
def show_setup_message(bridge, hass):
|
||||||
"""Display persistent notification with setup information."""
|
"""Display persistent notification with setup information."""
|
||||||
pin = bridge.pincode.decode()
|
pin = bridge.pincode.decode()
|
||||||
|
_LOGGER.info('Pincode: %s', pin)
|
||||||
message = 'To setup Home Assistant in the Home App, enter the ' \
|
message = 'To setup Home Assistant in the Home App, enter the ' \
|
||||||
'following code:\n### {}'.format(pin)
|
'following code:\n### {}'.format(pin)
|
||||||
hass.components.persistent_notification.create(
|
hass.components.persistent_notification.create(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user